Open CASCADE Technology 6.6.0
|
#include <TObj_Partition.hxx>
Public Member Functions | |
virtual Standard_Boolean | SetName (const Handle< TCollection_HExtendedString > &theName) const |
Sets name of the object. partition does not check unique of own name. | |
virtual void | AfterRetrieval () |
Preforms updating the links and dependances of the object which are not stored in persistence. Does not register the partition name. | |
TDF_Label | NewLabel () const |
Creates and Returns label for new object in partition. | |
void | SetNamePrefix (const Handle< TCollection_HExtendedString > &thePrefix) |
Sets prefix for names of the objects in partition. | |
Handle < TCollection_HExtendedString > | GetNamePrefix () const |
Returns prefix for names of the objects in partition. | |
Handle < TCollection_HExtendedString > | GetNewName (const Standard_Boolean theIsToChangeCount=Standard_True) |
Generates and returns name for new object in partition. if theIsToChangeCount is true partition icrease own counter to generate new name next time starting from new counter value. | |
Standard_Integer | GetLastIndex () const |
Return Last index in partition (reserved);. | |
void | SetLastIndex (const Standard_Integer theIndex) |
Sets Last index in partition (reserved);. | |
virtual Standard_Boolean | Update () |
Does nothing in the partition. | |
Static Public Member Functions | |
static Handle< TObj_Partition > | Create (const TDF_Label &theLabel) |
Creates a new partition on given label. | |
static Handle< TObj_Partition > | GetPartition (const Handle< TObj_Object > &theObject) |
Returns the partition in which object is stored. Null partition returned if not found. | |
Protected Types | |
enum | DataTag { DataTag_First = TObj_Object::DataTag_Last, DataTag_LastIndex, DataTag_Last = DataTag_First + 100 } |
enumeration for the ranks of label under Data section. More... | |
Protected Member Functions | |
TObj_Partition (const TDF_Label &theLabel) | |
Constructor is protected; static methods are used for creation of this type of objects. | |
virtual Standard_Boolean | copyData (const Handle< TObj_Object > &theTargetObject) |
Coping the data of me to Target object. return Standard_False is Target object is different type. |
This class privides tool handling one of partitions (the set of homogenious elements) in the OCAF based model`s data structure
enum TObj_Partition::DataTag [protected] |
Reimplemented from TObj_Object.
TObj_Partition::TObj_Partition | ( | const TDF_Label & | theLabel | ) | [protected] |
Constructor
virtual void TObj_Partition::AfterRetrieval | ( | ) | [virtual] |
Method for updating object afrer restoring
Reimplemented from TObj_Object.
virtual Standard_Boolean TObj_Partition::copyData | ( | const Handle< TObj_Object > & | theTargetObject | ) | [protected, virtual] |
protected redefined methods
Reimplemented from TObj_Object.
static Handle< TObj_Partition > TObj_Partition::Create | ( | const TDF_Label & | theLabel | ) | [static] |
Method for create partition
Standard_Integer TObj_Partition::GetLastIndex | ( | ) | const |
Handle< TCollection_HExtendedString > TObj_Partition::GetNamePrefix | ( | ) | const [inline] |
Handle< TCollection_HExtendedString > TObj_Partition::GetNewName | ( | const Standard_Boolean | theIsToChangeCount = Standard_True | ) |
static Handle< TObj_Partition > TObj_Partition::GetPartition | ( | const Handle< TObj_Object > & | theObject | ) | [static] |
Methods to define partition by object
TDF_Label TObj_Partition::NewLabel | ( | ) | const |
Methods handling of the objects in partition
void TObj_Partition::SetLastIndex | ( | const Standard_Integer | theIndex | ) |
virtual Standard_Boolean TObj_Partition::SetName | ( | const Handle< TCollection_HExtendedString > & | theName | ) | const [virtual] |
Methods hanling name of the object
Reimplemented from TObj_Object.
void TObj_Partition::SetNamePrefix | ( | const Handle< TCollection_HExtendedString > & | thePrefix | ) |
virtual Standard_Boolean TObj_Partition::Update | ( | ) | [inline, virtual] |
Methods for updating the object