#include <TDF_RelocationTable.hxx>
Public Member Functions | |
Standard_EXPORT | TDF_RelocationTable (const Standard_Boolean selfRelocate=Standard_False) |
Creates an relocation table. <selfrelocate> says if a value without explicit relocation is its own relocation. . | |
Standard_EXPORT void | SelfRelocate (const Standard_Boolean selfRelocate) |
Sets <myselfrelocate> to <selfrelocate>. This flag affects the HasRelocation method behavior like this: <myselfrelocate> == False: If no relocation object is found in the map, a null object is returned <myselfrelocate> == True: If no relocation object is found in the map, the method assumes the source object is relocation value; so the source object is returned as target object. . | |
Standard_EXPORT Standard_Boolean | SelfRelocate () const |
Returns <myselfrelocate>. . | |
Standard_EXPORT void | AfterRelocate (const Standard_Boolean afterRelocate) |
Standard_EXPORT Standard_Boolean | AfterRelocate () const |
Returns <myafterrelocate>. . | |
Standard_EXPORT void | SetRelocation (const TDF_Label &aSourceLabel, const TDF_Label &aTargetLabel) |
Sets the relocation value of <asourcelabel> to <atargetlabel>. . | |
Standard_EXPORT Standard_Boolean | HasRelocation (const TDF_Label &aSourceLabel, TDF_Label &aTargetLabel) const |
Finds the relocation value of <asourcelabel> and returns it into <atargetlabel>. (See above SelfRelocate method for more explanation about the method behavior) . | |
Standard_EXPORT void | SetRelocation (const Handle(TDF_Attribute)&aSourceAttribute, const Handle(TDF_Attribute)&aTargetAttribute) |
Sets the relocation value of <asourceattribute> to <atargetattribute>. . | |
Standard_EXPORT Standard_Boolean | HasRelocation (const Handle(TDF_Attribute)&aSourceAttribute, Handle(TDF_Attribute)&aTargetAttribute) const |
Finds the relocation value of <asourceattribute> and returns it into <atargetattribute>. (See above SelfRelocate method for more explanation about the method behavior) . | |
Standard_EXPORT void | SetTransientRelocation (const Handle(Standard_Transient)&aSourceTransient, const Handle(Standard_Transient)&aTargetTransient) |
Sets the relocation value of <asourcetransient> to <atargettransient>. . | |
Standard_EXPORT Standard_Boolean | HasTransientRelocation (const Handle(Standard_Transient)&aSourceTransient, Handle(Standard_Transient)&aTargetTransient) const |
Finds the relocation value of <asourcetransient> and returns it into <atargettransient>. (See above SelfRelocate method for more explanation about the method behavior) . | |
Standard_EXPORT void | Clear () |
Clears the relocation dictionnary, but lets the self relocation flag to its current value. . | |
Standard_EXPORT void | TargetLabelMap (TDF_LabelMap &aLabelMap) const |
Fills <alabelmap> with target relocation labels. <alabelmap> is not cleared before use. . | |
Standard_EXPORT void | TargetAttributeMap (TDF_AttributeMap &anAttributeMap) const |
Fills <anattributemap> with target relocation attributes. <anattributemap> is not cleared before use. . | |
Standard_EXPORT TDF_LabelDataMap & | LabelTable () |
Returns <mylabeltable> to be used or updated. . | |
Standard_EXPORT TDF_AttributeDataMap & | AttributeTable () |
Returns <myattributetable> to be used or updated. . | |
Standard_EXPORT TColStd_IndexedDataMapOfTransientTransient & | TransientTable () |
Returns <mytransienttable> to be used or updated. . | |
Standard_EXPORT Standard_OStream & | Dump (const Standard_Boolean dumpLabels, const Standard_Boolean dumpAttributes, const Standard_Boolean dumpTransients, Standard_OStream &anOS) const |
Dumps the relocation table. . | |
Standard_EXPORT const | Handle (Standard_Type)&DynamicType() const |
Private Attributes | |
Standard_Boolean | mySelfRelocate |
Standard_Boolean | myAfterRelocate |
TDF_LabelDataMap | myLabelTable |
TDF_AttributeDataMap | myAttributeTable |
TColStd_IndexedDataMapOfTransientTransient | myTransientTable |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|