Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Member Functions
DBRep Class Reference

Used to display BRep objects using the DrawTrSurf package. The DrawableShape is a Display object build from a Shape. Provides methods to manage a directory of named shapes. Provides a set of Draw commands for Shapes. More...

#include <DBRep.hxx>

Static Public Member Functions

static void Set (const char *const Name, const TopoDS_Shape &S)
 Creation of isoparametric curves. Implements ProgressIndicator for DRAW Sets in the variable <Name>. Overwrite the variable if already set.
 
static TopoDS_Shape Get (const char *&theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, bool theToComplain=false)
 Returns the shape in the variable.
 
static TopoDS_Shape Get (TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, bool theToComplain=false)
 Returns the shape in the variable.
 
static TopoDS_Shape GetExisting (const TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, bool theToComplain=false)
 Returns the shape in the variable.
 
static void BasicCommands (Draw_Interpretor &theCommands)
 Defines the basic commands.
 
static DBRep_ParamsParameters ()
 Return global parameters.
 
static bool HLRMode ()
 True if HLR, False if wireframe.
 
static bool Rg1Mode ()
 True if display Rg1Lines.
 
static bool RgNMode ()
 True if display RgNLines.
 
static bool HidMode ()
 True if display HiddenLines.
 
static double HLRAngle ()
 discretisation angle for edges.
 
static int NbIsos ()
 number of iso in U and V
 
static int Discretisation ()
 Discretization number of points for curves.
 

Static Protected Member Functions

static TopoDS_Shape getShape (const char *&theName, TopAbs_ShapeEnum theType, bool theToComplain)
 Returns the shape in the variable.
 

Detailed Description

Used to display BRep objects using the DrawTrSurf package. The DrawableShape is a Display object build from a Shape. Provides methods to manage a directory of named shapes. Provides a set of Draw commands for Shapes.

Member Function Documentation

◆ BasicCommands()

static void DBRep::BasicCommands ( Draw_Interpretor & theCommands)
static

Defines the basic commands.

◆ Discretisation()

static int DBRep::Discretisation ( )
inlinestatic

Discretization number of points for curves.

◆ Get() [1/2]

static TopoDS_Shape DBRep::Get ( const char *& theName,
TopAbs_ShapeEnum theType = TopAbs_SHAPE,
bool theToComplain = false )
inlinestatic

Returns the shape in the variable.

Parameters
[in]

out] theName variable name, or "." to pick up shape interactively (the picked name will be returned then)

Parameters
[in]theTypeshape type filter; function will return NULL if shape has different type
[in]theToComplainwhen TRUE, prints a message on cout if the variable is not set

◆ Get() [2/2]

static TopoDS_Shape DBRep::Get ( TCollection_AsciiString & theName,
TopAbs_ShapeEnum theType = TopAbs_SHAPE,
bool theToComplain = false )
inlinestatic

Returns the shape in the variable.

Parameters
[in]

out] theName variable name, or "." to pick up shape interactively (the picked name will be returned then)

Parameters
[in]theTypeshape type filter; function will return NULL if shape has different type
[in]theToComplainwhen TRUE, prints a message on cout if the variable is not set

◆ GetExisting()

static TopoDS_Shape DBRep::GetExisting ( const TCollection_AsciiString & theName,
TopAbs_ShapeEnum theType = TopAbs_SHAPE,
bool theToComplain = false )
inlinestatic

Returns the shape in the variable.

Parameters
[in]theNamevariable name
[in]theTypeshape type filter; function will return NULL if shape has different type
[in]theToComplainwhen TRUE, prints a message on cout if the variable is not set

◆ getShape()

static TopoDS_Shape DBRep::getShape ( const char *& theName,
TopAbs_ShapeEnum theType,
bool theToComplain )
staticprotected

Returns the shape in the variable.

Parameters
[in]

out] theName variable name, or "." to pick up shape interactively (the picked name will be returned then)

Parameters
[in]theTypeshape type filter; function will return NULL if shape has different type
[in]theToComplainwhen TRUE, prints a message on cout if the variable is not set

◆ HidMode()

static bool DBRep::HidMode ( )
inlinestatic

True if display HiddenLines.

◆ HLRAngle()

static double DBRep::HLRAngle ( )
inlinestatic

discretisation angle for edges.

◆ HLRMode()

static bool DBRep::HLRMode ( )
inlinestatic

True if HLR, False if wireframe.

◆ NbIsos()

static int DBRep::NbIsos ( )
inlinestatic

number of iso in U and V

◆ Parameters()

static DBRep_Params & DBRep::Parameters ( )
static

Return global parameters.

◆ Rg1Mode()

static bool DBRep::Rg1Mode ( )
inlinestatic

True if display Rg1Lines.

◆ RgNMode()

static bool DBRep::RgNMode ( )
inlinestatic

True if display RgNLines.

◆ Set()

static void DBRep::Set ( const char *const Name,
const TopoDS_Shape & S )
static

Creation of isoparametric curves. Implements ProgressIndicator for DRAW Sets in the variable <Name>. Overwrite the variable if already set.


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