Open CASCADE Technology  7.7.0
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 Standard_CString Name, const TopoDS_Shape &S)
 Creation of isoparametric curves. Implements ProgressIndicator for DRAW Sets <S> in the variable <Name>. Overwrite the variable if already set. More...
 
static TopoDS_Shape Get (Standard_CString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable. More...
 
static TopoDS_Shape Get (TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable. More...
 
static TopoDS_Shape GetExisting (const TCollection_AsciiString &theName, TopAbs_ShapeEnum theType=TopAbs_SHAPE, Standard_Boolean theToComplain=Standard_False)
 Returns the shape in the variable. More...
 
static void BasicCommands (Draw_Interpretor &theCommands)
 Defines the basic commands. More...
 
static DBRep_ParamsParameters ()
 Return global parameters. More...
 
static Standard_Boolean HLRMode ()
 True if HLR, False if wireframe. More...
 
static Standard_Boolean Rg1Mode ()
 True if display Rg1Lines. More...
 
static Standard_Boolean RgNMode ()
 True if display RgNLines. More...
 
static Standard_Boolean HidMode ()
 True if display HiddenLines. More...
 
static Standard_Real HLRAngle ()
 discretisation angle for edges. More...
 
static Standard_Integer NbIsos ()
 number of iso in U and V More...
 
static Standard_Integer Discretisation ()
 Discretization number of points for curves. More...
 

Static Protected Member Functions

static TopoDS_Shape getShape (Standard_CString &theName, TopAbs_ShapeEnum theType, Standard_Boolean theToComplain)
 Returns the shape in the variable. More...
 

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
theName[in] [out] variable name, or "." to pick up shape interactively (the picked name will be returned then)
theType[in] shape type filter; function will return NULL if shape has different type
theToComplain[in] when 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
theName[in] [out] variable name, or "." to pick up shape interactively (the picked name will be returned then)
theType[in] shape type filter; function will return NULL if shape has different type
theToComplain[in] when 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
theName[in] variable name
theType[in] shape type filter; function will return NULL if shape has different type
theToComplain[in] when 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
theName[in] [out] variable name, or "." to pick up shape interactively (the picked name will be returned then)
theType[in] shape type filter; function will return NULL if shape has different type
theToComplain[in] when 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 <S> in the variable <Name>. Overwrite the variable if already set.


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