Open CASCADE Technology 6.6.0
Static Public Member Functions
XCAFPrs Class Reference

Presentation (visualiation, selection etc.) tools for
DECAF documents

#include <XCAFPrs.hxx>

Static Public Member Functions

static void CollectStyleSettings (const TDF_Label &L, const TopLoc_Location &loc, XCAFPrs_DataMapOfShapeStyle &settings)
 Collect styles defined for shape on label L
and its components and subshapes and fills a map of
shape - style correspondence
The location <loc> is for internal use, it
should be Null location for external call

static Standard_Boolean DispatchStyles (const TopoDS_Shape &shape, const XCAFPrs_DataMapOfShapeStyle &settings, XCAFPrs_DataMapOfStyleShape &items, const XCAFPrs_Style &DefStyle, const Standard_Boolean force=Standard_True, const TopAbs_ShapeEnum context=TopAbs_SHAPE)
 Iterates on shape (recursively) and splits it
on parts each of which has its own style
(basing on settings collected by CollectStyleSettings())
The DefStyle is default style applied to a shape if
no specific style assignment is applied to it
If force is True, the <shape> is added to a map
even if no styles are redefined for it or its
subshapes
The context is for internal use, it indicates
the type of the shape to which <shape> belongs

static void SetViewNameMode (const Standard_Boolean viewNameMode)
 Set ViewNameMode for indicate display names or not.

static Standard_Boolean GetViewNameMode ()

Member Function Documentation

static void XCAFPrs::CollectStyleSettings ( const TDF_Label L,
const TopLoc_Location loc,
XCAFPrs_DataMapOfShapeStyle settings 
) [static]
static Standard_Boolean XCAFPrs::DispatchStyles ( const TopoDS_Shape shape,
const XCAFPrs_DataMapOfShapeStyle settings,
XCAFPrs_DataMapOfStyleShape items,
const XCAFPrs_Style DefStyle,
const Standard_Boolean  force = Standard_True,
const TopAbs_ShapeEnum  context = TopAbs_SHAPE 
) [static]
static Standard_Boolean XCAFPrs::GetViewNameMode ( ) [static]
static void XCAFPrs::SetViewNameMode ( const Standard_Boolean  viewNameMode) [static]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines