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
TNaming_NamedShape Class Reference

The basis to define an attribute for the storage of
topology and naming data.
This attribute contains two parts:
More...

#include <TNaming_NamedShape.hxx>

Inheritance diagram for TNaming_NamedShape:
Inheritance graph
[legend]

Public Member Functions

 TNaming_NamedShape ()
Standard_Boolean IsEmpty () const
TopoDS_Shape Get () const
 Returns the shapes contained in <NS>. Returns a null
shape if IsEmpty.

TNaming_Evolution Evolution () const
 Returns the Evolution of the attribute.

Standard_Integer Version () const
 Returns the Version of the attribute.

void SetVersion (const Standard_Integer version)
 Set the Version of the attribute.

void Clear ()
 ~TNaming_NamedShape ()
const Standard_GUIDID () const
 Returns the ID of the attribute.

virtual Handle_TDF_Attribute BackupCopy () const
 Copies the attribute contents into a new other
attribute. It is used by Backup().

virtual void Restore (const Handle< TDF_Attribute > &anAttribute)
 Restores the contents from <anAttribute> into this
one. It is used when aborting a transaction.


virtual
Handle_TDF_DeltaOnModification 
DeltaOnModification (const Handle< TDF_Attribute > &anOldAttribute) const
 Makes a DeltaOnModification between <me> and
<anOldAttribute.

virtual void DeltaOnModification (const Handle< TDF_DeltaOnModification > &aDelta)
 Applies a DeltaOnModification to <me>.

virtual Handle_TDF_DeltaOnRemoval DeltaOnRemoval () const
 Makes a DeltaOnRemoval on <me> because <me> has
disappeared from the DS.

virtual Handle_TDF_Attribute NewEmpty () const
 Returns an new empty attribute from the good end
type. It is used by the copy algorithm.

virtual void Paste (const Handle< TDF_Attribute > &intoAttribute, const Handle< TDF_RelocationTable > &aRelocTationable) const
 This method is different from the "Copy" one,
because it is used when copying an attribute from
a source structure into a target structure. This
method pastes the current attribute to the label
corresponding to the insertor. The pasted
attribute may be a brand new one or a new version
of the previous one.

virtual void References (const Handle< TDF_DataSet > &aDataSet) const
 Adds the directly referenced attributes and labels
to <aDataSet>. "Directly" means we have only to
look at the first level of references.

virtual void BeforeRemoval ()
 Something to do before removing an Attribute from
a label.

virtual Standard_Boolean BeforeUndo (const Handle< TDF_AttributeDelta > &anAttDelta, const Standard_Boolean forceIt=Standard_False)
 Something to do before applying <anAttDelta>

virtual Standard_Boolean AfterUndo (const Handle< TDF_AttributeDelta > &anAttDelta, const Standard_Boolean forceIt=Standard_False)
 Something to do after applying <anAttDelta>.

virtual Standard_OStreamDump (Standard_OStream &anOS) const
 Dumps the attribute on <aStream>.

Static Public Member Functions

static const Standard_GUIDGetID ()
 class method
============
//! Returns the GUID for named shapes.


Detailed Description


Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from TDF_Attribute.

virtual Handle_TDF_Attribute TNaming_NamedShape::BackupCopy ( ) const [virtual]

Reimplemented from TDF_Attribute.

virtual void TNaming_NamedShape::BeforeRemoval ( ) [virtual]

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

virtual Handle_TDF_DeltaOnModification TNaming_NamedShape::DeltaOnModification ( const Handle< TDF_Attribute > &  anOldAttribute) const [virtual]

Reimplemented from TDF_Attribute.

Reimplemented from TDF_Attribute.

virtual Handle_TDF_DeltaOnRemoval TNaming_NamedShape::DeltaOnRemoval ( ) const [virtual]

Reimplemented from TDF_Attribute.

virtual Standard_OStream& TNaming_NamedShape::Dump ( Standard_OStream anOS) const [virtual]

Reimplemented from TDF_Attribute.

Implements TDF_Attribute.

virtual Handle_TDF_Attribute TNaming_NamedShape::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

virtual void TNaming_NamedShape::Paste ( const Handle< TDF_Attribute > &  intoAttribute,
const Handle< TDF_RelocationTable > &  aRelocTationable 
) const [virtual]

Implements TDF_Attribute.

virtual void TNaming_NamedShape::References ( const Handle< TDF_DataSet > &  aDataSet) const [virtual]

Reimplemented from TDF_Attribute.

virtual void TNaming_NamedShape::Restore ( const Handle< TDF_Attribute > &  anAttribute) [virtual]

Implements TDF_Attribute.


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