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

XCAFDoc_ColorTool Class Reference

#include <XCAFDoc_ColorTool.hxx>

Inheritance diagram for XCAFDoc_ColorTool:

TDF_Attribute MMgt_TShared Standard_Transient

List of all members.


Detailed Description

Provides tools to store and retrieve attributes (colors)
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 65 of file XCAFDoc_ColorTool.hxx.


Public Member Functions

Standard_EXPORT void AddAttribute (const Handle(TDF_Attribute)&other) const
Standard_EXPORT TDF_Label AddColor (const Quantity_Color &col) 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 colors 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 FindColor (const Quantity_Color &col) const
Standard_EXPORT Standard_Boolean FindColor (const Quantity_Color &col, 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 GetColor (const TopoDS_Shape &S, const XCAFDoc_ColorType type, Quantity_Color &color)
Standard_EXPORT Standard_Boolean GetColor (const TopoDS_Shape &S, const XCAFDoc_ColorType type, TDF_Label &colorL)
Standard_EXPORT Standard_Boolean GetColor (const TDF_Label &L, const XCAFDoc_ColorType type, Quantity_Color &color)
Standard_EXPORT Standard_Boolean GetColor (const TDF_Label &L, const XCAFDoc_ColorType type, TDF_Label &colorL)
Standard_EXPORT Standard_Boolean GetColor (const TDF_Label &lab, Quantity_Color &col) const
Standard_EXPORT void GetColors (TDF_LabelSequence &Labels) const
Standard_EXPORT Standard_Boolean GetInstanceColor (const TopoDS_Shape &theShape, const XCAFDoc_ColorType type, Quantity_Color &color)
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 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_EXPORT Standard_Boolean IsColor (const TDF_Label &lab) 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 IsInstanceVisible (const TopoDS_Shape &theShape)
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_Boolean IsNew () const
Standard_EXPORT Standard_Boolean IsSet (const TopoDS_Shape &S, const XCAFDoc_ColorType type)
Standard_EXPORT Standard_Boolean IsSet (const TDF_Label &L, const XCAFDoc_ColorType type) const
Standard_Boolean IsValid () const
Standard_EXPORT Standard_Boolean IsVisible (const TDF_Label &L) const
 Return TRUE if object on this label 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 RemoveColor (const TDF_Label &lab) const
 Removes color from the colortable
.
Standard_EXPORT void Restore (const Handle(TDF_Attribute)&with)
Standard_EXPORT Standard_Boolean ReverseChainsOfTreeNodes ()
Standard_EXPORT Standard_Boolean SetColor (const TopoDS_Shape &S, const Quantity_Color &Color, const XCAFDoc_ColorType type)
Standard_EXPORT Standard_Boolean SetColor (const TopoDS_Shape &S, const TDF_Label &colorL, const XCAFDoc_ColorType type)
Standard_EXPORT void SetColor (const TDF_Label &L, const Quantity_Color &Color, const XCAFDoc_ColorType type) const
Standard_EXPORT void SetColor (const TDF_Label &L, const TDF_Label &colorL, const XCAFDoc_ColorType type) const
Standard_EXPORT Standard_Boolean SetInstanceColor (const TopoDS_Shape &theShape, const XCAFDoc_ColorType type, const Quantity_Color &color, const Standard_Boolean isCreateSHUO=Standard_True)
Standard_EXPORT void SetVisibility (const TDF_Label &shapeLabel, const Standard_Boolean isvisible=Standard_True)
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 UnSetColor (const TopoDS_Shape &S, const XCAFDoc_ColorType type)
Standard_EXPORT void UnSetColor (const TDF_Label &L, const XCAFDoc_ColorType type) const
Standard_EXPORT Standard_Integer UntilTransaction () const

Static Public Member Functions

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

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