XCAFPrs
OCCT package XCAFPrs: XCAFPrs, XCAFPrs_DocumentExplorer, XCAFPrs_DocumentIdIterator, XCAFPrs_DocumentNode, and 1 more bound classes.
XCAFPrs
Presentation (visualiation, selection etc.) tools for DECAF documents.
Constructors(1)
Static methods(3)
- CollectStyleSettings(L: TDF_Label, loc: TopLoc_Location, settings: NCollection_IndexedDataMap_TopoDS_Shape_XCAFPrs_Style_TopTools_ShapeMapHasher, theLayerColor: Quantity_ColorRGBA): void
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.
Parameters (4)Llocsettings—Mutated in place; read the updated value from this argument after the call.theLayerColor
- SetViewNameMode(viewNameMode: boolean): void
Set ViewNameMode for indicate display names or not.
Parameters (1)viewNameMode
- GetViewNameMode(): boolean
XCAFPrs_DocumentExplorer
Document iterator through shape nodes.
Constructors(3)
- constructor(theDocument: TDocStd_Document, theFlags: number, theDefStyle?: XCAFPrs_Style): XCAFPrs_DocumentExplorerParameters (3)
theDocumenttheFlagstheDefStyle
- constructor(theDocument: TDocStd_Document, theRoots: NCollection_Sequence_TDF_Label, theFlags: number, theDefStyle?: XCAFPrs_Style): XCAFPrs_DocumentExplorerParameters (4)
theDocumenttheRootstheFlagstheDefStyle
Static methods(4)
- DefineChildId(theLabel: TDF_Label, theParentId: TCollection_AsciiString): TCollection_AsciiStringParameters (2)
theLabeltheParentId
- FindLabelFromPathId(theDocument: TDocStd_Document, theId: TCollection_AsciiString, theParentLocation: TopLoc_Location, theLocation: TopLoc_Location): TDF_LabelParameters (4)
theDocumenttheIdtheParentLocationtheLocation
- FindLabelFromPathId(theDocument: TDocStd_Document, theId: TCollection_AsciiString, theLocation: TopLoc_Location): TDF_LabelParameters (3)
theDocumenttheIdtheLocation
- FindShapeFromPathId(theDocument: TDocStd_Document, theId: TCollection_AsciiString): TopoDS_ShapeParameters (2)
theDocumenttheId
Instance methods(10)
- Init(theDocument: TDocStd_Document, theRoot: TDF_Label, theFlags: number, theDefStyle: XCAFPrs_Style): voidParameters (4)
theDocumenttheRoottheFlagstheDefStyle
- Init(theDocument: TDocStd_Document, theRoots: NCollection_Sequence_TDF_Label, theFlags: number, theDefStyle: XCAFPrs_Style): voidParameters (4)
theDocumenttheRootstheFlagstheDefStyle
- More(): boolean
- Current(theDepth: number): XCAFPrs_DocumentNodeParameters (1)
theDepth
- CurrentDepth(): number
- Next(): void
XCAFPrs_DocumentIdIterator
Auxiliary tool for iterating through Path identification string.
Constructors(1)
Main constructor.
Parameters (1)thePath
Instance methods(3)
XCAFPrs_DocumentNode
Structure defining document node.
Constructors(1)
Properties(7)
XCAFPrs_Style
Represents a set of styling settings applicable to a (sub)shape.
Constructors(1)
Empty constructor - colors are unset, visibility is TRUE.
Instance methods(15)
Return material.
- SetMaterial(theMaterial: XCAFDoc_VisMaterial): void
Set material.
Parameters (1)theMaterial
- IsSetColorSurf(): boolean
Return TRUE if surface color has been defined.
Return surface color.
- SetColorSurf(theColor: Quantity_Color): void
Set surface color.
Parameters (1)theColor
- SetColorSurf(theColor: Quantity_ColorRGBA): void
Set surface color.
Parameters (1)theColor
Return surface color.
- UnSetColorSurf(): void
Manage surface color setting.
- IsSetColorCurv(): boolean
Return TRUE if curve color has been defined.
Return curve color.
- SetColorCurv(col: Quantity_Color): void
Set curve color.
Parameters (1)col
- UnSetColorCurv(): void
Manage curve color setting.
- SetVisibility(theVisibility: boolean): void
Assign visibility.
Parameters (1)theVisibility
- IsVisible(): boolean
Manage visibility.
- IsEqual(theOther: XCAFPrs_Style): boolean
Returns True if styles are the same Methods for using Style as key in maps.
Parameters (1)theOther