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

Position of a Label

#include <TDataXtd_Position.hxx>

Inheritance diagram for TDataXtd_Position:
Inheritance graph
[legend]

Public Member Functions

 TDataXtd_Position ()
const Standard_GUIDID () const
 Returns the ID of the attribute.

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_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.

const gp_PntGetPosition () const
void SetPosition (const gp_Pnt &aPos)

Static Public Member Functions

static void Set (const TDF_Label &aLabel, const gp_Pnt &aPos)
 Create if not found the TDataXtd_Position attribute set its position to <aPos>

static Handle_TDataXtd_Position Set (const TDF_Label &aLabel)
 Find an existing, or create an empty, Position.
the Position attribute is returned.

static Standard_Boolean Get (const TDF_Label &aLabel, gp_Pnt &aPos)
 Search label <aLabel) for the TDataXtd_Position attribute and get its position
if found returns True

static const Standard_GUIDGetID ()
 Returns the ID of the attribute.


Constructor & Destructor Documentation


Member Function Documentation

static Standard_Boolean TDataXtd_Position::Get ( const TDF_Label aLabel,
gp_Pnt aPos 
) [static]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Implements TDF_Attribute.

static void TDataXtd_Position::Set ( const TDF_Label aLabel,
const gp_Pnt aPos 
) [static]
static Handle_TDataXtd_Position TDataXtd_Position::Set ( const TDF_Label aLabel) [static]

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