Open CASCADE Technology  6.8.0
Static Public Member Functions
XCAFPrs Class Reference

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

#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. More...
 
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. More...
 
static void SetViewNameMode (const Standard_Boolean viewNameMode)
 Set ViewNameMode for indicate display names or not. More...
 
static Standard_Boolean GetViewNameMode ()
 

Detailed Description

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

Member Function Documentation

static void XCAFPrs::CollectStyleSettings ( const TDF_Label L,
const TopLoc_Location loc,
XCAFPrs_DataMapOfShapeStyle settings 
)
static

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 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

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 Standard_Boolean XCAFPrs::GetViewNameMode ( )
static
static void XCAFPrs::SetViewNameMode ( const Standard_Boolean  viewNameMode)
static

Set ViewNameMode for indicate display names or not.


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