Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
TObj_TObject Class Reference

#include <TObj_TObject.hxx>

Inheritance diagram for TObj_TObject:
Inheritance graph
[legend]

Public Member Functions

 TObj_TObject ()
 Standard methods of OCAF attribute.
const Standard_GUIDID () const
 Returns the ID of TObj_TObject attribute.
void Set (const Handle< TObj_Object > &theElem)
 Methods for setting and obtaining TObj_Object.
Handle< TObj_ObjectGet () const
 Returns the TObj_Object object.
Handle< TDF_AttributeNewEmpty () 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.
void BeforeForget ()
 Tell TObj_Object to die, i.e. (myElem->IsAlive() == false) after that.
Standard_Boolean AfterUndo (const Handle< TDF_AttributeDelta > &anAttDelta, const Standard_Boolean forceIt)
 Tell TObj_Object to rise from the dead, i.e. (myElem->IsAlive() == true) after that.

Static Public Member Functions

static const Standard_GUIDGetID ()
 This method is used in implementation of ID()
static Handle< TObj_TObjectSet (const TDF_Label &theLabel, const Handle< TObj_Object > &theElem)
 Method for create TObj_TObject object.

Detailed Description

Purpose: OCAF Attribute to storing objects (interfaces) of OCAF-based modelers in the OCAF tree. The persistency mechanism of the TObj_TObject allowes to save and restore objects of various subtypes without recompilation of the schema


Constructor & Destructor Documentation

Empty constructor


Member Function Documentation

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

static const Standard_GUID& TObj_TObject::GetID ( ) [static]
const Standard_GUID& TObj_TObject::ID ( ) const [virtual]

Implements TDF_Attribute.

Returns an new empty TObj_TObject attribute. It is used by the copy algorithm.

Implements TDF_Attribute.

void TObj_TObject::Paste ( const Handle< TDF_Attribute > &  theInto,
const Handle< TDF_RelocationTable > &  theRT 
) const [virtual]

Implements TDF_Attribute.

void TObj_TObject::Restore ( const Handle< TDF_Attribute > &  theWith) [virtual]

Implements TDF_Attribute.

static Handle< TObj_TObject > TObj_TObject::Set ( const TDF_Label theLabel,
const Handle< TObj_Object > &  theElem 
) [static]

Creates TObj_TObject attribute on given label

Sets the TObj_Object object


The documentation for this class was generated from the following file: