Open CASCADE Technology
6.5.4
|
#include <TObj_TModel.hxx>
Public Member Functions | |
TObj_TModel () | |
Empty constructor. | |
const Standard_GUID & | ID () const |
Returns the ID of TObj_TModel attribute. | |
void | Set (const Handle< TObj_Model > &theModel) |
Methods for setting and obtaining the Model object. | |
Handle< TObj_Model > | Model () const |
Returns the Model 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() |
Attribute to store OCAF-based models in OCAF tree The persistency mechanism of the TObj_TModel allowes to save and restore various types of models without recompilation of the schema
Standard methods of attribute
static const Standard_GUID& TObj_TModel::GetID | ( | ) | [static] |
const Standard_GUID& TObj_TModel::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
Handle< TObj_Model > TObj_TModel::Model | ( | ) | const |
Handle< TDF_Attribute > TObj_TModel::NewEmpty | ( | ) | const [virtual] |
Returns an new empty TObj_TModel attribute. It is used by the copy algorithm.
Implements TDF_Attribute.
void TObj_TModel::Paste | ( | const Handle< TDF_Attribute > & | theInto, |
const Handle< TDF_RelocationTable > & | theRT | ||
) | const [virtual] |
Implements TDF_Attribute.
void TObj_TModel::Restore | ( | const Handle< TDF_Attribute > & | theWith | ) | [virtual] |
Implements TDF_Attribute.
void TObj_TModel::Set | ( | const Handle< TObj_Model > & | theModel | ) |
Sets the the Model object