Open CASCADE Technology  7.4.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 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 ()
 discretisation number of points for curves set progress indicator get progress indicator 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 ( )
static

discretisation number of points for curves set progress indicator get progress indicator

◆ 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 ( )
static

True if display HiddenLines.

◆ HLRAngle()

static Standard_Real DBRep::HLRAngle ( )
static

discretisation angle for edges.

◆ HLRMode()

static Standard_Boolean DBRep::HLRMode ( )
static

True if HLR, False if wireframe.

◆ NbIsos()

static Standard_Integer DBRep::NbIsos ( )
static

number of iso in U and V

◆ Rg1Mode()

static Standard_Boolean DBRep::Rg1Mode ( )
static

True if display Rg1Lines.

◆ RgNMode()

static Standard_Boolean DBRep::RgNMode ( )
static

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: