Logo Search packages:      
Sourcecode: opencascade version File versions  Download package

XCAFDoc_LayerTool Class Reference

#include <XCAFDoc_LayerTool.hxx>

Inheritance diagram for XCAFDoc_LayerTool:

TDF_Attribute MMgt_TShared Standard_Transient

List of all members.


Detailed Description

Provides tools to store and retrieve attributes (Layers)
of TopoDS_Shape in and from TDocStd_Document
A Document is intended to hold different
attributes of ONE shape and it's sub-shapes

Definition at line 66 of file XCAFDoc_LayerTool.hxx.


Public Member Functions

Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)&other) const
Standard_EXPORT TDF_Label AddLayer (const TCollection_ExtendedString &aLayer) const
virtual Standard_EXPORT void AfterAddition ()
 Something to do after adding an Attribute to a label.
.
virtual Standard_EXPORT void AfterResume ()
virtual Standard_EXPORT
Standard_Boolean 
AfterRetrieval (const Standard_Boolean forceIt=Standard_False)
virtual Standard_EXPORT
Standard_Boolean 
AfterUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False)
Standard_EXPORT void Backup ()
virtual Standard_EXPORT
Handle_TDF_Attribute 
BackupCopy () const
Standard_EXPORT TDF_Label BaseLabel () const
 returns the label under which Layers are stored

virtual Standard_EXPORT void BeforeCommitTransaction ()
virtual Standard_EXPORT void BeforeForget ()
virtual Standard_EXPORT void BeforeRemoval ()
virtual Standard_EXPORT
Standard_Boolean 
BeforeUndo (const Handle(TDF_AttributeDelta)&anAttDelta, const Standard_Boolean forceIt=Standard_False)
virtual Standard_EXPORT void Delete () const
 Memory deallocator for transient classes.
virtual Standard_EXPORT
Handle_TDF_DeltaOnAddition 
DeltaOnAddition () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnForget 
DeltaOnForget () const
virtual Standard_EXPORT void DeltaOnModification (const Handle(TDF_DeltaOnModification)&aDelta)
 Applies a DeltaOnModification to <me>.
.
virtual Standard_EXPORT
Handle_TDF_DeltaOnModification 
DeltaOnModification (const Handle(TDF_Attribute)&anOldAttribute) const
virtual Standard_EXPORT
Handle_TDF_DeltaOnRemoval 
DeltaOnRemoval () const
virtual Standard_EXPORT
Handle_TDF_DeltaOnResume 
DeltaOnResume () const
virtual Standard_EXPORT
Standard_OStream & 
Dump (Standard_OStream &anOS) const
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT const
Handle_Standard_Type & 
DynamicType () const
 Returns a type information object about this object.
virtual Standard_EXPORT void ExtendedDump (Standard_OStream &anOS, const TDF_IDFilter &aFilter, TDF_AttributeIndexedMap &aMap) const
Standard_EXPORT Standard_Boolean FindAttribute (const Standard_GUID &anID, Handle(TDF_Attribute)&anAttribute) const
Standard_EXPORT TDF_Label FindLayer (const TCollection_ExtendedString &aLayer) const
Standard_EXPORT Standard_Boolean FindLayer (const TCollection_ExtendedString &aLayer, TDF_Label &lab) const
Standard_EXPORT void Forget (const Standard_Integer aTransaction)
Standard_EXPORT void ForgetAllAttributes (const Standard_Boolean clearChildren=Standard_True) const
Standard_EXPORT Standard_Boolean ForgetAttribute (const Standard_GUID &aguid) const
Standard_EXPORT Standard_Boolean GetLayer (const TDF_Label &lab, TCollection_ExtendedString &aLayer) const
Standard_EXPORT void GetLayerLabels (TDF_LabelSequence &Labels) const
Standard_EXPORT
Handle_TColStd_HSequenceOfExtendedString 
GetLayers (const TopoDS_Shape &Sh)
 Return sequence of strings that assosiated with shape <Sh>.
.
Standard_EXPORT Standard_Boolean GetLayers (const TopoDS_Shape &Sh, Handle(TColStd_HSequenceOfExtendedString)&aLayerS)
 Return sequence of strings <aLayerS> that assosiated with shape <Sh>.
.
Standard_EXPORT
Handle_TColStd_HSequenceOfExtendedString 
GetLayers (const TDF_Label &L)
 Return sequence of strings that assosiated with label <L>.
.
Standard_EXPORT Standard_Boolean GetLayers (const TDF_Label &L, Handle(TColStd_HSequenceOfExtendedString)&aLayerS)
 Return sequence of strings <aLayerS> that assosiated with label <L>.
.
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT Standard_Integer GetRefCount () const
 Get the reference counter of this object.
Standard_EXPORT void GetShapesOfLayer (const TDF_Label &layerL, TDF_LabelSequence &ShLabels) const
 Return sequanese of shape labels that assigned with layers to <ShLabels>.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
virtual Standard_EXPORT
Standard_Integer 
HashCode (const Standard_Integer Upper) const
Standard_EXPORT const
Standard_GUID & 
ID () const
Standard_EXPORT Standard_Boolean IsAttribute (const Standard_GUID &anID) const
Standard_Boolean IsBackuped () const
Standard_Boolean IsForgotten () const
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName.
Standard_EXPORT Standard_Boolean IsInstance (const Handle_Standard_Type &theType) const
 Returns a true value if this is an instance of Type.
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_EXPORT Standard_Boolean IsKind (const Standard_CString theTypeName) const
Standard_EXPORT Standard_Boolean IsKind (const Handle_Standard_Type &theType) const
Standard_EXPORT Standard_Boolean IsLayer (const TDF_Label &lab) const
Standard_Boolean IsNew () const
Standard_EXPORT Standard_Boolean IsSet (const TopoDS_Shape &Sh, const TCollection_ExtendedString &aLayer)
Standard_EXPORT Standard_Boolean IsSet (const TDF_Label &L, const TCollection_ExtendedString &aLayer) const
Standard_Boolean IsValid () const
Standard_EXPORT Standard_Boolean IsVisible (const TDF_Label &layerL) const
 Return TRUE if layer is visible, FALSE if invisible.
.
Standard_EXPORT const TDF_Label Label () const
Standard_EXPORT
Handle_TDF_Attribute 
NewEmpty () const
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void operator delete (void *anAddress)
 Operator delete symmetric to operator new.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
void * operator new (size_t size)
 Operator new for memory allocation uses Open CASCADE memory manager.
void * operator new (size_t, void *anAddress)
 Operator new for placement in pre-allocated memory.
Standard_OStream & operator<< (Standard_OStream &anOS) const
Standard_EXPORT void Paste (const Handle(TDF_Attribute)&into, const Handle(TDF_RelocationTable)&RT) const
virtual Standard_EXPORT void References (const Handle(TDF_DataSet)&aDataSet) const
Standard_EXPORT void RemoveLayer (const TDF_Label &lab) const
 Removes Layer from the Layertable
.
Standard_EXPORT void Restore (const Handle(TDF_Attribute)&with)
Standard_EXPORT Standard_Boolean SetLayer (const TopoDS_Shape &Sh, const TCollection_ExtendedString &aLayer, const Standard_Boolean shapeInOneLayer=Standard_False)
Standard_EXPORT Standard_Boolean SetLayer (const TopoDS_Shape &Sh, const TDF_Label &LayerL, const Standard_Boolean shapeInOneLayer=Standard_False)
Standard_EXPORT void SetLayer (const TDF_Label &L, const TCollection_ExtendedString &aLayer, const Standard_Boolean shapeInOneLayer=Standard_False) const
Standard_EXPORT void SetLayer (const TDF_Label &L, const TDF_Label &LayerL, const Standard_Boolean shapeInOneLayer=Standard_False) const
Standard_EXPORT void SetVisibility (const TDF_Label &layerL, const Standard_Boolean isvisible=Standard_True) const
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
virtual Standard_EXPORT void ShallowDump (Standard_OStream &) const
Standard_EXPORT const
Handle_XCAFDoc_ShapeTool & 
ShapeTool ()
 Returns internal XCAFDoc_ShapeTool tool
.
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
virtual Standard_EXPORT
Handle_Standard_Transient 
This () const
Standard_Integer Transaction () const
Standard_EXPORT Standard_Boolean UnSetLayers (const TopoDS_Shape &Sh)
Standard_EXPORT void UnSetLayers (const TDF_Label &L) const
 Removes a link from label <L> to all layers
.
Standard_EXPORT Standard_Boolean UnSetOneLayer (const TopoDS_Shape &Sh, const TCollection_ExtendedString &aLayer)
Standard_EXPORT Standard_Boolean UnSetOneLayer (const TDF_Label &L, const TCollection_ExtendedString &aLayer) const
Standard_EXPORT Standard_Integer UntilTransaction () const

Static Public Member Functions

static Standard_EXPORT const
Standard_GUID & 
GetID ()
static Standard_EXPORT
Handle_XCAFDoc_LayerTool 
Set (const TDF_Label &L)
 Creates (if not exist) LayerTool.
.

Private Attributes

Handle_XCAFDoc_ShapeTool myShapeTool

Friends

class TDF_AttributeIterator
class TDF_Data
class TDF_DeltaOnForget
class TDF_Label
class TDF_LabelNode

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

Generated by  Doxygen 1.6.0   Back to index