Open CASCADE Technology 6.6.0
|
#include <TObj_TNameContainer.hxx>
Public Member Functions | |
TObj_TNameContainer () | |
Standard methods of OCAF attribute. | |
const Standard_GUID & | ID () const |
Returns the ID of TObj_TNameContainer attribute. | |
void | RecordName (const Handle< TCollection_HExtendedString > &theName, const TDF_Label &theLabel) |
Methods for adding and removing names. | |
void | RemoveName (const Handle< TCollection_HExtendedString > &theName) |
Remove name from the map. | |
Standard_Boolean | IsRegistered (const Handle< TCollection_HExtendedString > &theName) const |
Return True is theName is registered in the Map. | |
void | Clear () |
Remove all names registered in container. | |
void | Set (const TObj_DataMapOfNameLabel &theElem) |
Methods for setting and obtaining TObj_TNameContainer. | |
const TObj_DataMapOfNameLabel & | Get () const |
Returns the TObj_DataMapOfNameLabel object. | |
Handle< TDF_Attribute > | NewEmpty () const |
Redefined OCAF abstract methods. | |
void | Restore (const Handle< TDF_Attribute > &theWith) |
Restores the backuped contents from <theWith> into this one. It is used when aborting a transaction. | |
void | Paste (const Handle< TDF_Attribute > &theInto, const Handle< TDF_RelocationTable > &theRT) const |
This method is used when copying an attribute from a source structure into a target structure. | |
Static Public Member Functions | |
static const Standard_GUID & | GetID () |
This method is used in implementation of ID() | |
static Handle < TObj_TNameContainer > | Set (const TDF_Label &theLabel) |
Method for create TObj_TNameContainer object. |
This class provides OCAF Attribute to storing the unique names of object in model.
TObj_TNameContainer::TObj_TNameContainer | ( | ) |
Empty constructor
void TObj_TNameContainer::Clear | ( | ) |
const TObj_DataMapOfNameLabel& TObj_TNameContainer::Get | ( | ) | const |
static const Standard_GUID& TObj_TNameContainer::GetID | ( | ) | [static] |
const Standard_GUID& TObj_TNameContainer::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
Standard_Boolean TObj_TNameContainer::IsRegistered | ( | const Handle< TCollection_HExtendedString > & | theName | ) | const |
Handle< TDF_Attribute > TObj_TNameContainer::NewEmpty | ( | ) | const [virtual] |
Returns an new empty TObj_TNameContainer attribute. It is used by the copy algorithm.
Implements TDF_Attribute.
void TObj_TNameContainer::Paste | ( | const Handle< TDF_Attribute > & | theInto, |
const Handle< TDF_RelocationTable > & | theRT | ||
) | const [virtual] |
Implements TDF_Attribute.
void TObj_TNameContainer::RecordName | ( | const Handle< TCollection_HExtendedString > & | theName, |
const TDF_Label & | theLabel | ||
) |
Records name with label attached
void TObj_TNameContainer::RemoveName | ( | const Handle< TCollection_HExtendedString > & | theName | ) |
void TObj_TNameContainer::Restore | ( | const Handle< TDF_Attribute > & | theWith | ) | [virtual] |
Implements TDF_Attribute.
void TObj_TNameContainer::Set | ( | const TObj_DataMapOfNameLabel & | theElem | ) |
Sets the TObj_DataMapOfNameLabel object
static Handle< TObj_TNameContainer > TObj_TNameContainer::Set | ( | const TDF_Label & | theLabel | ) | [static] |
Creates TObj_DataMapOfNameLabel attribute on given label if not exist