# Draw
TKDraw
DrawTrSurf

# DrawTrSurf_BSplineSurface Class Reference

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>`

Inheritance diagram for DrawTrSurf_BSplineSurface:

[legend]

## Public Member Functions

Standard_EXPORT | 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.

Standard_EXPORT

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. .

Standard_EXPORT

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. .
Standard_EXPORT void | DrawOn (Draw_Display &dis) const
| this is defined only to tell C++ not to complain about inheriting a pure virtual method.
Standard_EXPORT void | ShowPoles ()
Standard_EXPORT void | ShowKnots ()
virtual Standard_EXPORT void | ShowIsos (const Standard_Integer Nu, const Standard_Integer Nv)
| change the number of isoparametric curves to be drawn.
Standard_EXPORT void | ShowKnotsIsos ()
| change the number of isoparametric curves to be drawn.
virtual Standard_EXPORT void | ClearIsos ()
| rub out all the isoparametric curves.
Standard_EXPORT void | ClearPoles ()
Standard_EXPORT void | ClearKnots ()
Standard_EXPORT 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
Standard_EXPORT void | FindUKnot (const Standard_Real X, const Standard_Real Y, const Draw_Display &D, const Standard_Real Prec, Standard_Integer &UIndex) const
Standard_EXPORT 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 Standard_EXPORT Handle_Draw_Drawable3D | Copy () const
| For variable copy. .
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const

## Private Attributes

Standard_Boolean | drawPoles
Standard_Boolean | drawKnots
Standard_Boolean | knotsIsos
Draw_MarkerShape | knotsForm
Draw_Color | knotsLook
Standard_Integer | knotsDim
Draw_Color | polesLook

## Constructor & Destructor Documentation

Standard_EXPORT DrawTrSurf_BSplineSurface::DrawTrSurf_BSplineSurface | ( | const Handle(Geom_BSplineSurface)& | S | ) |

Standard_EXPORT 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
| ) |

Standard_EXPORT 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
| ) |

## Member Function Documentation

virtual Standard_EXPORT void DrawTrSurf_BSplineSurface::ClearIsos | ( |  | ) | `[virtual]`

| Reimplemented from DrawTrSurf_Surface.

Standard_EXPORT void DrawTrSurf_BSplineSurface::ClearKnots | ( |  | ) |

Standard_EXPORT void DrawTrSurf_BSplineSurface::ClearPoles | ( |  | ) |

virtual Standard_EXPORT Handle_Draw_Drawable3D DrawTrSurf_BSplineSurface::Copy | ( |  | ) | const`[virtual]`

| Reimplemented from DrawTrSurf_Surface.

Standard_EXPORT void DrawTrSurf_BSplineSurface::DrawOn | ( | Draw_Display & | dis | ) | const`[virtual]`

| Reimplemented from DrawTrSurf_Surface.

Standard_EXPORT 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

Standard_EXPORT void DrawTrSurf_BSplineSurface::FindUKnot | ( | const Standard_Real | X,
|  | const Standard_Real | Y,
|  | const Draw_Display & | D,
|  | const Standard_Real | Prec,
|  | Standard_Integer & | UIndex
| ) | const

Standard_EXPORT void DrawTrSurf_BSplineSurface::FindVKnot | ( | const Standard_Real | X,
|  | const Standard_Real | Y,
|  | const Draw_Display & | D,
|  | const Standard_Real | Prec,
|  | Standard_Integer & | VIndex
| ) | const

Standard_EXPORT const DrawTrSurf_BSplineSurface::Handle | ( | Standard_Type |  | ) | const

| Reimplemented from DrawTrSurf_Surface.

Draw_Color DrawTrSurf_BSplineSurface::KnotsColor | ( |  | ) | const`[inline]`

Draw_MarkerShape DrawTrSurf_BSplineSurface::KnotsShape | ( |  | ) | const`[inline]`

Draw_Color DrawTrSurf_BSplineSurface::PolesColor | ( |  | ) | const`[inline]`

void DrawTrSurf_BSplineSurface::SetKnotsColor | ( | const Draw_Color & | aColor | ) | `[inline]`

void DrawTrSurf_BSplineSurface::SetKnotsShape | ( | const Draw_MarkerShape | Shape | ) | `[inline]`

void DrawTrSurf_BSplineSurface::SetPolesColor | ( | const Draw_Color & | aColor | ) | `[inline]`

virtual Standard_EXPORT void DrawTrSurf_BSplineSurface::ShowIsos | ( | const Standard_Integer | Nu,
|  | const Standard_Integer | Nv
| ) | `[virtual]`

| Reimplemented from DrawTrSurf_Surface.

Standard_EXPORT void DrawTrSurf_BSplineSurface::ShowKnots | ( |  | ) |

Standard_EXPORT void DrawTrSurf_BSplineSurface::ShowKnotsIsos | ( |  | ) |

Standard_EXPORT void DrawTrSurf_BSplineSurface::ShowPoles | ( |  | ) |

## Field Documentation

Standard_Boolean DrawTrSurf_BSplineSurface::drawKnots `[private]`

Standard_Boolean DrawTrSurf_BSplineSurface::drawPoles `[private]`

Standard_Integer DrawTrSurf_BSplineSurface::knotsDim `[private]`

Draw_MarkerShape DrawTrSurf_BSplineSurface::knotsForm `[private]`

Standard_Boolean DrawTrSurf_BSplineSurface::knotsIsos `[private]`

Draw_Color DrawTrSurf_BSplineSurface::knotsLook `[private]`

Draw_Color DrawTrSurf_BSplineSurface::polesLook `[private]`

The documentation for this class was generated from the following files:

- DrawTrSurf_BSplineSurface.hxx
- DrawTrSurf_BSplineSurface.lxx