Open CASCADE Technology 6.6.0
Public Member Functions | Protected Attributes
DrawTrSurf_Surface Class Reference

This class defines a drawable surface.
With this class you can draw a general surface from
package Geom.

#include <DrawTrSurf_Surface.hxx>

Inheritance diagram for DrawTrSurf_Surface:
Inheritance graph
[legend]

Public Member Functions

 DrawTrSurf_Surface (const Handle< Geom_Surface > &S)
 default drawing mode
Just the middle isoparametric curves are drawn.
The boundaries are yellow, the isoparametric curves are blues.
For the discretisation 50 points are computed in each parametric
direction.

 DrawTrSurf_Surface (const Handle< Geom_Surface > &S, const Standard_Integer Nu, const Standard_Integer Nv, const Draw_Color &BoundsColor, const Draw_Color &IsosColor, const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode)
Draw_Color BoundsColor () const
virtual void ClearIsos ()
 rub out all the isoparametric curves.

void DrawOn (Draw_Display &dis) const
 this is defined only to tell C++ not to complain
about inheriting a pure virtual method.

void DrawOn (Draw_Display &dis, const Standard_Boolean Iso) const
 Iso = True : Draw the isos, the boundaries, the UVMarker.
Iso = False: Only Draw the boundary and the UVMarker.

Handle_Geom_Surface GetSurface () const
Draw_Color IsosColor () const
void NbIsos (Standard_Integer &Nu, Standard_Integer &Nb) const
void SetBoundsColor (const Draw_Color &aColor)
void SetIsosColor (const Draw_Color &aColor)
virtual void ShowIsos (const Standard_Integer Nu, const Standard_Integer Nv)
 change the number of isoparametric curves to be drawn.

virtual Handle_Draw_Drawable3D Copy () const
 For variable copy.

virtual void Dump (Standard_OStream &S) const
 For variable dump.

virtual void Whatis (Draw_Interpretor &I) const
 For variable whatis command.

Protected Attributes

Handle_Geom_Surface surf
Draw_Color boundsLook
Draw_Color isosLook
Standard_Integer nbUIsos
Standard_Integer nbVIsos

Constructor & Destructor Documentation

DrawTrSurf_Surface::DrawTrSurf_Surface ( const Handle< Geom_Surface > &  S)
DrawTrSurf_Surface::DrawTrSurf_Surface ( const Handle< Geom_Surface > &  S,
const Standard_Integer  Nu,
const Standard_Integer  Nv,
const Draw_Color BoundsColor,
const Draw_Color IsosColor,
const Standard_Integer  Discret,
const Standard_Real  Deflection,
const Standard_Integer  DrawMode 
)

Member Function Documentation

Draw_Color DrawTrSurf_Surface::BoundsColor ( ) const
virtual void DrawTrSurf_Surface::ClearIsos ( ) [virtual]

Reimplemented in DrawTrSurf_BSplineSurface.

virtual Handle_Draw_Drawable3D DrawTrSurf_Surface::Copy ( ) const [virtual]

Reimplemented from Draw_Drawable3D.

Reimplemented in DrawTrSurf_BSplineSurface, and DrawTrSurf_BezierSurface.

void DrawTrSurf_Surface::DrawOn ( Draw_Display dis,
const Standard_Boolean  Iso 
) const
void DrawTrSurf_Surface::DrawOn ( Draw_Display dis) const [virtual]
virtual void DrawTrSurf_Surface::Dump ( Standard_OStream S) const [virtual]

Reimplemented from Draw_Drawable3D.

Handle_Geom_Surface DrawTrSurf_Surface::GetSurface ( ) const
Draw_Color DrawTrSurf_Surface::IsosColor ( ) const
void DrawTrSurf_Surface::NbIsos ( Standard_Integer Nu,
Standard_Integer Nb 
) const
void DrawTrSurf_Surface::SetBoundsColor ( const Draw_Color aColor)
void DrawTrSurf_Surface::SetIsosColor ( const Draw_Color aColor)
virtual void DrawTrSurf_Surface::ShowIsos ( const Standard_Integer  Nu,
const Standard_Integer  Nv 
) [virtual]

Reimplemented in DrawTrSurf_BSplineSurface.

virtual void DrawTrSurf_Surface::Whatis ( Draw_Interpretor I) const [virtual]

Reimplemented from Draw_Drawable3D.


Field Documentation

Handle_Geom_Surface DrawTrSurf_Surface::surf [protected]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines