Open CASCADE Technology  7.3.0
Static Public Member Functions

DrawTrSurf Class Reference

This package supports the display of parametric curves and surfaces. More...

#include <DrawTrSurf.hxx>

Static Public Member Functions

static void Set (const Standard_CString Name, const gp_Pnt &G)
 Sets <G> in the variable <Name>. Overwrite the variable if already set. More...
 
static void Set (const Standard_CString Name, const gp_Pnt2d &G)
 Sets <G> in the variable <Name>. Overwrite the variable if already set. More...
 
static void Set (const Standard_CString Name, const Handle< Geom_Geometry > &G, const Standard_Boolean isSenseMarker=Standard_True)
 Sets <G> in the variable <Name>. Overwrite the variable if already set. isSenseMarker indicates whether to render the sense glyph (arrow) for curves or not. More...
 
template<class T >
static void Set (const Standard_CString Name, const Handle< T > &Arg, typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom_Geometry, T >::value >::type *=0)
 
static void Set (const Standard_CString Name, const Handle< Geom2d_Curve > &C, const Standard_Boolean isSenseMarker=Standard_True)
 Sets in the variable <Name>. Overwrite the variable if already set. isSenseMarker indicates whether to render the sense glyph (arrow) for curves or not. More...
 
template<class T >
static void Set (const Standard_CString Name, const Handle< T > &Arg, typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom2d_Curve, T >::value >::type *=0)
 
static void Set (const Standard_CString Name, const Handle< Poly_Triangulation > &T)
 Sets <T> in the variable <Name>. Overwrite the variable if already set. More...
 
static void Set (const Standard_CString Name, const Handle< Poly_Polygon3D > &P)
 Sets. More...
 
static void Set (const Standard_CString Name, const Handle< Poly_Polygon2D > &P)
 Sets. More...
 
static Handle< Geom_GeometryGet (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Standard_Boolean GetPoint (Standard_CString &Name, gp_Pnt &P)
 Gets the variable. Returns False if none and print a warning message. More...
 
static Standard_Boolean GetPoint2d (Standard_CString &Name, gp_Pnt2d &P)
 Gets the variable. Returns False if none and print a warning message. More...
 
static Handle< Geom_CurveGetCurve (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom_BezierCurveGetBezierCurve (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom_BSplineCurveGetBSplineCurve (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom2d_CurveGetCurve2d (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom2d_BezierCurveGetBezierCurve2d (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom2d_BSplineCurveGetBSplineCurve2d (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom_SurfaceGetSurface (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom_BezierSurfaceGetBezierSurface (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Geom_BSplineSurfaceGetBSplineSurface (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Poly_TriangulationGetTriangulation (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Poly_Polygon3DGetPolygon3D (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static Handle< Poly_Polygon2DGetPolygon2D (Standard_CString &Name)
 Get the variable <S>. Returns a null handle if none, and print a warning message. More...
 
static void BasicCommands (Draw_Interpretor &I)
 defines display commands. More...
 

Detailed Description

This package supports the display of parametric curves and surfaces.

The Drawable deferred classes is inherited from the Drawable3D class from the package Draw, it adds methods to draw 3D Curves and Curves on 3D Surfaces.

The classes Curve Curve2d and Surface are drawable and can be used to draw a single curve from packages Geom or Geom2d or a surface from Geom.

The Triangulation and Polygon from the package Poly are also supported.

Member Function Documentation

◆ BasicCommands()

static void DrawTrSurf::BasicCommands ( Draw_Interpretor I)
static

defines display commands.

◆ Get()

static Handle< Geom_Geometry > DrawTrSurf::Get ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBezierCurve()

static Handle< Geom_BezierCurve > DrawTrSurf::GetBezierCurve ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBezierCurve2d()

static Handle< Geom2d_BezierCurve > DrawTrSurf::GetBezierCurve2d ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBezierSurface()

static Handle< Geom_BezierSurface > DrawTrSurf::GetBezierSurface ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBSplineCurve()

static Handle< Geom_BSplineCurve > DrawTrSurf::GetBSplineCurve ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBSplineCurve2d()

static Handle< Geom2d_BSplineCurve > DrawTrSurf::GetBSplineCurve2d ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetBSplineSurface()

static Handle< Geom_BSplineSurface > DrawTrSurf::GetBSplineSurface ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetCurve()

static Handle< Geom_Curve > DrawTrSurf::GetCurve ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetCurve2d()

static Handle< Geom2d_Curve > DrawTrSurf::GetCurve2d ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetPoint()

static Standard_Boolean DrawTrSurf::GetPoint ( Standard_CString Name,
gp_Pnt P 
)
static

Gets the variable. Returns False if none and print a warning message.

◆ GetPoint2d()

static Standard_Boolean DrawTrSurf::GetPoint2d ( Standard_CString Name,
gp_Pnt2d P 
)
static

Gets the variable. Returns False if none and print a warning message.

◆ GetPolygon2D()

static Handle< Poly_Polygon2D > DrawTrSurf::GetPolygon2D ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetPolygon3D()

static Handle< Poly_Polygon3D > DrawTrSurf::GetPolygon3D ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetSurface()

static Handle< Geom_Surface > DrawTrSurf::GetSurface ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ GetTriangulation()

static Handle< Poly_Triangulation > DrawTrSurf::GetTriangulation ( Standard_CString Name)
static

Get the variable <S>. Returns a null handle if none, and print a warning message.

◆ Set() [1/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const gp_Pnt G 
)
static

Sets <G> in the variable <Name>. Overwrite the variable if already set.

◆ Set() [2/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const gp_Pnt2d G 
)
static

Sets <G> in the variable <Name>. Overwrite the variable if already set.

◆ Set() [3/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< Geom_Geometry > &  G,
const Standard_Boolean  isSenseMarker = Standard_True 
)
static

Sets <G> in the variable <Name>. Overwrite the variable if already set. isSenseMarker indicates whether to render the sense glyph (arrow) for curves or not.

◆ Set() [4/9]

template<class T >
static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< T > &  Arg,
typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom_Geometry, T >::value >::type *  = 0 
)
inlinestatic

◆ Set() [5/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< Geom2d_Curve > &  C,
const Standard_Boolean  isSenseMarker = Standard_True 
)
static

Sets in the variable <Name>. Overwrite the variable if already set. isSenseMarker indicates whether to render the sense glyph (arrow) for curves or not.

◆ Set() [6/9]

template<class T >
static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< T > &  Arg,
typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom2d_Curve, T >::value >::type *  = 0 
)
inlinestatic

◆ Set() [7/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< Poly_Triangulation > &  T 
)
static

Sets <T> in the variable <Name>. Overwrite the variable if already set.

◆ Set() [8/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< Poly_Polygon3D > &  P 
)
static

Sets.

in the variable <Name>. Overwrite the variable if already set.

◆ Set() [9/9]

static void DrawTrSurf::Set ( const Standard_CString  Name,
const Handle< Poly_Polygon2D > &  P 
)
static

Sets.

in the variable <Name>. Overwrite the variable if already set.


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