Open CASCADE Technology 6.6.0
|
This class defines a drawable BSplineSurface.
With this class you can draw the control points and the knots
of the surface.
You can use the general class Surface from DrawTrSurf too,
if you just want to sea boundaries and isoparametric curves.
#include <DrawTrSurf_BSplineSurface.hxx>
Public Member Functions | |
DrawTrSurf_BSplineSurface (const Handle< Geom_BSplineSurface > &S) | |
default drawing mode. The isoparametric curves corresponding to the knots values are drawn. The control points and the knots points are drawn. The boundaries are yellow, the isoparametric curves are blues. For the discretisation 50 points are computed in each parametric direction. | |
DrawTrSurf_BSplineSurface (const Handle< Geom_BSplineSurface > &S, const Draw_Color &BoundsColor, const Draw_Color &IsosColor, const Draw_Color &PolesColor, const Draw_Color &KnotsColor, const Draw_MarkerShape KnotsShape, const Standard_Integer KnotsSize, const Standard_Boolean ShowPoles, const Standard_Boolean ShowKnots, const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode) | |
The isoparametric curves corresponding to the knots values are drawn. | |
DrawTrSurf_BSplineSurface (const Handle< Geom_BSplineSurface > &S, const Standard_Integer NbUIsos, const Standard_Integer NbVIsos, const Draw_Color &BoundsColor, const Draw_Color &IsosColor, const Draw_Color &PolesColor, const Draw_Color &KnotsColor, const Draw_MarkerShape KnotsShape, const Standard_Integer KnotsSize, const Standard_Boolean ShowPoles, const Standard_Boolean ShowKnots, const Standard_Integer Discret, const Standard_Real Deflection, const Standard_Integer DrawMode) | |
Parametric equidistant iso curves are drawn. | |
void | DrawOn (Draw_Display &dis) const |
this is defined only to tell C++ not to complain about inheriting a pure virtual method. | |
void | ShowPoles () |
void | ShowKnots () |
virtual void | ShowIsos (const Standard_Integer Nu, const Standard_Integer Nv) |
change the number of isoparametric curves to be drawn. | |
void | ShowKnotsIsos () |
change the number of isoparametric curves to be drawn. | |
virtual void | ClearIsos () |
rub out all the isoparametric curves. | |
void | ClearPoles () |
void | ClearKnots () |
void | FindPole (const Standard_Real X, const Standard_Real Y, const Draw_Display &D, const Standard_Real Prec, Standard_Integer &UIndex, Standard_Integer &VIndex) const |
void | FindUKnot (const Standard_Real X, const Standard_Real Y, const Draw_Display &D, const Standard_Real Prec, Standard_Integer &UIndex) const |
void | FindVKnot (const Standard_Real X, const Standard_Real Y, const Draw_Display &D, const Standard_Real Prec, Standard_Integer &VIndex) const |
void | SetPolesColor (const Draw_Color &aColor) |
void | SetKnotsColor (const Draw_Color &aColor) |
void | SetKnotsShape (const Draw_MarkerShape Shape) |
Draw_MarkerShape | KnotsShape () const |
Draw_Color | KnotsColor () const |
Draw_Color | PolesColor () const |
virtual Handle_Draw_Drawable3D | Copy () const |
For variable copy. |
DrawTrSurf_BSplineSurface::DrawTrSurf_BSplineSurface | ( | const Handle< Geom_BSplineSurface > & | S | ) |
DrawTrSurf_BSplineSurface::DrawTrSurf_BSplineSurface | ( | const Handle< Geom_BSplineSurface > & | S, |
const Draw_Color & | BoundsColor, | ||
const Draw_Color & | IsosColor, | ||
const Draw_Color & | PolesColor, | ||
const Draw_Color & | KnotsColor, | ||
const Draw_MarkerShape | KnotsShape, | ||
const Standard_Integer | KnotsSize, | ||
const Standard_Boolean | ShowPoles, | ||
const Standard_Boolean | ShowKnots, | ||
const Standard_Integer | Discret, | ||
const Standard_Real | Deflection, | ||
const Standard_Integer | DrawMode | ||
) |
DrawTrSurf_BSplineSurface::DrawTrSurf_BSplineSurface | ( | const Handle< Geom_BSplineSurface > & | S, |
const Standard_Integer | NbUIsos, | ||
const Standard_Integer | NbVIsos, | ||
const Draw_Color & | BoundsColor, | ||
const Draw_Color & | IsosColor, | ||
const Draw_Color & | PolesColor, | ||
const Draw_Color & | KnotsColor, | ||
const Draw_MarkerShape | KnotsShape, | ||
const Standard_Integer | KnotsSize, | ||
const Standard_Boolean | ShowPoles, | ||
const Standard_Boolean | ShowKnots, | ||
const Standard_Integer | Discret, | ||
const Standard_Real | Deflection, | ||
const Standard_Integer | DrawMode | ||
) |
virtual void DrawTrSurf_BSplineSurface::ClearIsos | ( | ) | [virtual] |
Reimplemented from DrawTrSurf_Surface.
void DrawTrSurf_BSplineSurface::ClearKnots | ( | ) |
void DrawTrSurf_BSplineSurface::ClearPoles | ( | ) |
virtual Handle_Draw_Drawable3D DrawTrSurf_BSplineSurface::Copy | ( | ) | const [virtual] |
Reimplemented from DrawTrSurf_Surface.
void DrawTrSurf_BSplineSurface::DrawOn | ( | Draw_Display & | dis | ) | const [virtual] |
Reimplemented from DrawTrSurf_Surface.
void DrawTrSurf_BSplineSurface::FindPole | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Draw_Display & | D, | ||
const Standard_Real | Prec, | ||
Standard_Integer & | UIndex, | ||
Standard_Integer & | VIndex | ||
) | const |
void DrawTrSurf_BSplineSurface::FindUKnot | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Draw_Display & | D, | ||
const Standard_Real | Prec, | ||
Standard_Integer & | UIndex | ||
) | const |
void DrawTrSurf_BSplineSurface::FindVKnot | ( | const Standard_Real | X, |
const Standard_Real | Y, | ||
const Draw_Display & | D, | ||
const Standard_Real | Prec, | ||
Standard_Integer & | VIndex | ||
) | const |
Draw_Color DrawTrSurf_BSplineSurface::KnotsColor | ( | ) | const |
Draw_MarkerShape DrawTrSurf_BSplineSurface::KnotsShape | ( | ) | const |
Draw_Color DrawTrSurf_BSplineSurface::PolesColor | ( | ) | const |
void DrawTrSurf_BSplineSurface::SetKnotsColor | ( | const Draw_Color & | aColor | ) |
void DrawTrSurf_BSplineSurface::SetKnotsShape | ( | const Draw_MarkerShape | Shape | ) |
void DrawTrSurf_BSplineSurface::SetPolesColor | ( | const Draw_Color & | aColor | ) |
virtual void DrawTrSurf_BSplineSurface::ShowIsos | ( | const Standard_Integer | Nu, |
const Standard_Integer | Nv | ||
) | [virtual] |
Reimplemented from DrawTrSurf_Surface.
void DrawTrSurf_BSplineSurface::ShowKnots | ( | ) |
void DrawTrSurf_BSplineSurface::ShowKnotsIsos | ( | ) |
void DrawTrSurf_BSplineSurface::ShowPoles | ( | ) |