Open CASCADE Technology 6.6.0
|
this class adds to the Drawable3D methods to
display Curves and Curves on Surface.
The discretisation, number of points on a Curve,
is stored in this class.
#include <DrawTrSurf_Drawable.hxx>
Public Member Functions | |
void | DrawCurve2dOn (Adaptor2d_Curve2d &C, Draw_Display &D) const |
Draw a polygon of the curve on the Display | |
void | DrawCurveOn (Adaptor3d_Curve &C, Draw_Display &D) const |
Draw a polygon of the curve on the Display | |
void | DrawIsoCurveOn (Adaptor3d_IsoCurve &C, const GeomAbs_IsoType T, const Standard_Real P, const Standard_Real F, const Standard_Real L, Draw_Display &D) const |
Load C with the specified iso and Draw a polygon of the curve on the Display | |
virtual void | DrawOn (Draw_Display &dis) const =0 |
this is defined only to tell C++ not to complain about inheriting a pure virtual method. | |
void | SetDiscretisation (const Standard_Integer Discret) |
Standard_Integer | GetDiscretisation () const |
void | SetDeflection (const Standard_Real Deflection) |
Standard_Real | GetDeflection () const |
void | SetDrawMode (const Standard_Integer DrawMode) |
Standard_Integer | GetDrawMode () const |
Protected Member Functions | |
DrawTrSurf_Drawable (const Standard_Integer discret, const Standard_Real deflection=0.01, const Standard_Integer DrawMode=0) | |
set the number of points on a curve at creation. |
DrawTrSurf_Drawable::DrawTrSurf_Drawable | ( | const Standard_Integer | discret, |
const Standard_Real | deflection = 0.01 , |
||
const Standard_Integer | DrawMode = 0 |
||
) | [protected] |
void DrawTrSurf_Drawable::DrawCurve2dOn | ( | Adaptor2d_Curve2d & | C, |
Draw_Display & | D | ||
) | const |
void DrawTrSurf_Drawable::DrawCurveOn | ( | Adaptor3d_Curve & | C, |
Draw_Display & | D | ||
) | const |
void DrawTrSurf_Drawable::DrawIsoCurveOn | ( | Adaptor3d_IsoCurve & | C, |
const GeomAbs_IsoType | T, | ||
const Standard_Real | P, | ||
const Standard_Real | F, | ||
const Standard_Real | L, | ||
Draw_Display & | D | ||
) | const |
virtual void DrawTrSurf_Drawable::DrawOn | ( | Draw_Display & | dis | ) | const [pure virtual] |
Implements Draw_Drawable3D.
Implemented in DrawTrSurf_Curve, DrawTrSurf_BSplineCurve, DrawTrSurf_BezierCurve, DrawTrSurf_Curve2d, DrawTrSurf_BSplineCurve2d, DrawTrSurf_BezierCurve2d, DrawTrSurf_Surface, DrawTrSurf_BSplineSurface, DrawTrSurf_BezierSurface, TestTopOpeDraw_DrawableSUR, TestTopOpeDraw_DrawableC3D, TestTopOpeDraw_DrawableC2D, and TestTopOpeDraw_DrawableMesure.
Standard_Real DrawTrSurf_Drawable::GetDeflection | ( | ) | const |
Standard_Integer DrawTrSurf_Drawable::GetDiscretisation | ( | ) | const |
Standard_Integer DrawTrSurf_Drawable::GetDrawMode | ( | ) | const |
void DrawTrSurf_Drawable::SetDeflection | ( | const Standard_Real | Deflection | ) |
void DrawTrSurf_Drawable::SetDiscretisation | ( | const Standard_Integer | Discret | ) |
void DrawTrSurf_Drawable::SetDrawMode | ( | const Standard_Integer | DrawMode | ) |