Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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 char *const Name, const gp_Pnt &G)
 Sets <G> in the variable <Name>. Overwrite the variable if already set.
 
static void Set (const char *const Name, const gp_Pnt2d &G)
 Sets <G> in the variable <Name>. Overwrite the variable if already set.
 
static void Set (const char *const Name, const occ::handle< Geom_Geometry > &G, const bool isSenseMarker=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.
 
template<class T >
static void Set (const char *const Name, const occ::handle< T > &Arg, typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom_Geometry, T >::value >::type *=nullptr)
 
static void Set (const char *const Name, const occ::handle< Geom2d_Curve > &C, const bool isSenseMarker=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.
 
template<class T >
static void Set (const char *const Name, const occ::handle< T > &Arg, typename opencascade::std::enable_if< opencascade::std::is_base_of< Geom2d_Curve, T >::value >::type *=nullptr)
 
static void Set (const char *const Name, const occ::handle< Poly_Triangulation > &T)
 Sets <T> in the variable <Name>. Overwrite the variable if already set.
 
static void Set (const char *const Name, const occ::handle< Poly_Polygon3D > &P)
 Sets.
 
static void Set (const char *const Name, const occ::handle< Poly_Polygon2D > &P)
 Sets.
 
static occ::handle< Geom_GeometryGet (const char *&Name)
 Getthe variable . Returns a null handle if none, and print a warning message.
 
static bool GetPoint (const char *&Name, gp_Pnt &P)
 Gets the variable. Returns False if none and print a warning message.
 
static bool GetPoint2d (const char *&Name, gp_Pnt2d &P)
 Gets the variable. Returns False if none and print a warning message.
 
static occ::handle< Geom_CurveGetCurve (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom_BezierCurveGetBezierCurve (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom_BSplineCurveGetBSplineCurve (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom2d_CurveGetCurve2d (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom2d_BezierCurveGetBezierCurve2d (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom2d_BSplineCurveGetBSplineCurve2d (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom_SurfaceGetSurface (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom_BezierSurfaceGetBezierSurface (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Geom_BSplineSurfaceGetBSplineSurface (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Poly_TriangulationGetTriangulation (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Poly_Polygon3DGetPolygon3D (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static occ::handle< Poly_Polygon2DGetPolygon2D (const char *&Name)
 Get the variable . Returns a null handle if none, and print a warning message.
 
static DrawTrSurf_ParamsParameters ()
 Return package global parameters.
 
static void BasicCommands (Draw_Interpretor &I)
 defines display commands.
 

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 occ::handle< Geom_Geometry > DrawTrSurf::Get ( const char *& Name)
static

Getthe variable . Returns a null handle if none, and print a warning message.

◆ GetBezierCurve()

static occ::handle< Geom_BezierCurve > DrawTrSurf::GetBezierCurve ( const char *& Name)
static

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

◆ GetBezierCurve2d()

static occ::handle< Geom2d_BezierCurve > DrawTrSurf::GetBezierCurve2d ( const char *& Name)
static

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

◆ GetBezierSurface()

static occ::handle< Geom_BezierSurface > DrawTrSurf::GetBezierSurface ( const char *& Name)
static

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

◆ GetBSplineCurve()

static occ::handle< Geom_BSplineCurve > DrawTrSurf::GetBSplineCurve ( const char *& Name)
static

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

◆ GetBSplineCurve2d()

static occ::handle< Geom2d_BSplineCurve > DrawTrSurf::GetBSplineCurve2d ( const char *& Name)
static

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

◆ GetBSplineSurface()

static occ::handle< Geom_BSplineSurface > DrawTrSurf::GetBSplineSurface ( const char *& Name)
static

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

◆ GetCurve()

static occ::handle< Geom_Curve > DrawTrSurf::GetCurve ( const char *& Name)
static

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

◆ GetCurve2d()

static occ::handle< Geom2d_Curve > DrawTrSurf::GetCurve2d ( const char *& Name)
static

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

◆ GetPoint()

static bool DrawTrSurf::GetPoint ( const char *& Name,
gp_Pnt & P )
static

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

◆ GetPoint2d()

static bool DrawTrSurf::GetPoint2d ( const char *& Name,
gp_Pnt2d & P )
static

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

◆ GetPolygon2D()

static occ::handle< Poly_Polygon2D > DrawTrSurf::GetPolygon2D ( const char *& Name)
static

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

◆ GetPolygon3D()

static occ::handle< Poly_Polygon3D > DrawTrSurf::GetPolygon3D ( const char *& Name)
static

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

◆ GetSurface()

static occ::handle< Geom_Surface > DrawTrSurf::GetSurface ( const char *& Name)
static

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

◆ GetTriangulation()

static occ::handle< Poly_Triangulation > DrawTrSurf::GetTriangulation ( const char *& Name)
static

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

◆ Parameters()

static DrawTrSurf_Params & DrawTrSurf::Parameters ( )
static

Return package global parameters.

◆ Set() [1/9]

static void DrawTrSurf::Set ( const char *const 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 char *const 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 char *const Name,
const occ::handle< Geom2d_Curve > & C,
const bool isSenseMarker = 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() [4/9]

static void DrawTrSurf::Set ( const char *const Name,
const occ::handle< Geom_Geometry > & G,
const bool isSenseMarker = 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() [5/9]

static void DrawTrSurf::Set ( const char *const Name,
const occ::handle< Poly_Polygon2D > & P )
static

Sets.

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

◆ Set() [6/9]

static void DrawTrSurf::Set ( const char *const Name,
const occ::handle< Poly_Polygon3D > & P )
static

Sets.

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

◆ Set() [7/9]

static void DrawTrSurf::Set ( const char *const Name,
const occ::handle< Poly_Triangulation > & T )
static

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

◆ Set() [8/9]

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

◆ Set() [9/9]

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

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