Open CASCADE Technology 6.6.0
Public Member Functions | Static Public Member Functions
TDataXtd_Axis Class Reference

The basis to define an axis attribute.

Warning: Use TDataXtd_Geometry attribute to retrieve the
gp_Lin of the Axis attribute

#include <TDataXtd_Axis.hxx>

Inheritance diagram for TDataXtd_Axis:
Inheritance graph
[legend]

Public Member Functions

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


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

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

void Paste (const Handle< TDF_Attribute > &into, const Handle< TDF_RelocationTable > &RT) 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 may paste the contents of <me> into
<intoAttribute>.

The given pasted attribute can be full or empty of
its contents. But don't make a NEW! Just set the
contents!

It is possible to use <aRelocationTable> to
get/set the relocation value of a source
attribute.

virtual Standard_OStreamDump (Standard_OStream &anOS) const
 Dumps the minimum information about <me> on
<aStream>.


Static Public Member Functions

static const Standard_GUIDGetID ()
 class methods
=============
//! Returns the GUID for an axis.

static Handle_TDataXtd_Axis Set (const TDF_Label &label)
 Finds or creates an axis attribute defined by the label.
In the case of a creation of an axis, a compatible
named shape should already be associated with label.
Exceptions
Standard_NullObject if no compatible named
shape is associated with the label.

static Handle_TDataXtd_Axis Set (const TDF_Label &label, const gp_Lin &L)
 Find, or create, an Axis attribute and set.

Constructor & Destructor Documentation

TDataXtd_Axis::TDataXtd_Axis ( )

Member Function Documentation

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

Reimplemented from TDF_Attribute.

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

Implements TDF_Attribute.

Handle_TDF_Attribute TDataXtd_Axis::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Implements TDF_Attribute.

static Handle_TDataXtd_Axis TDataXtd_Axis::Set ( const TDF_Label label,
const gp_Lin L 
) [static]

as
generated in the associated NamedShape.
//! Axis methods
============

static Handle_TDataXtd_Axis TDataXtd_Axis::Set ( const TDF_Label label) [static]

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines