Open CASCADE Technology 7.9.0
 
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Loading...
Searching...
No Matches
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 Standard_CString 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 (Standard_CString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable.
 
static TopoDS_Shape Get (TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable.
 
static TopoDS_Shape GetExisting (const TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable.
 
static void BasicCommands (Draw_Interpretor &theCommands)
 Defines the basic commands.
 
static DBRep_ParamsParameters ()
 Return global parameters.
 
static Standard_Boolean HLRMode ()
 True if HLR, False if wireframe.
 
static Standard_Boolean Rg1Mode ()
 True if display Rg1Lines.
 
static Standard_Boolean RgNMode ()
 True if display RgNLines.
 
static Standard_Boolean HidMode ()
 True if display HiddenLines.
 
static Standard_Real HLRAngle ()
 discretisation angle for edges.
 
static Standard_Integer NbIsos ()
 number of iso in U and V
 
static Standard_Integer Discretisation ()
 Discretization number of points for curves.
 

Static Protected Member Functions

static TopoDS_Shape getShape (Standard_CString &theName, TopAbs_ShapeEnum theType, Standard_Boolean 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 Standard_Integer DBRep::Discretisation ( )
inlinestatic

Discretization number of points for curves.

◆ Get() [1/2]

static TopoDS_Shape DBRep::Get ( Standard_CString & theName,
TopAbs_ShapeEnum theType = TopAbs_SHAPE,
Standard_Boolean theToComplain = Standard_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,
Standard_Boolean theToComplain = Standard_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,
Standard_Boolean theToComplain = Standard_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 ( Standard_CString & theName,
TopAbs_ShapeEnum theType,
Standard_Boolean 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 Standard_Boolean DBRep::HidMode ( )
inlinestatic

True if display HiddenLines.

◆ HLRAngle()

static Standard_Real DBRep::HLRAngle ( )
inlinestatic

discretisation angle for edges.

◆ HLRMode()

static Standard_Boolean DBRep::HLRMode ( )
inlinestatic

True if HLR, False if wireframe.

◆ NbIsos()

static Standard_Integer DBRep::NbIsos ( )
inlinestatic

number of iso in U and V

◆ Parameters()

static DBRep_Params & DBRep::Parameters ( )
static

Return global parameters.

◆ Rg1Mode()

static Standard_Boolean DBRep::Rg1Mode ( )
inlinestatic

True if display Rg1Lines.

◆ RgNMode()

static Standard_Boolean DBRep::RgNMode ( )
inlinestatic

True if display RgNLines.

◆ Set()

static void DBRep::Set ( const Standard_CString 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: