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

A Shape is associated in the framework with :
a NamedShape attribute

#include <TDataXtd_Shape.hxx>

Inheritance diagram for TDataXtd_Shape:
Inheritance graph
[legend]

Public Member Functions

 TDataXtd_Shape ()
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 void References (const Handle< TDF_DataSet > &DS) const
 Adds the first level referenced attributes and labels
to <aDataSet>.

For this, use the AddLabel or AddAttribute of
DataSet.

If there is none, do not implement the method.

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


Static Public Member Functions

static Standard_Boolean Find (const TDF_Label &current, Handle< TDataXtd_Shape > &S)
 class methods
=============
//! try to retrieve a Shape attribute at <current> label
or in fathers label of <current>. Returns True if
found and set <S>.

static Handle_TDataXtd_Shape New (const TDF_Label &label)
 Find, or create, a Shape attribute. the Shape attribute
is returned. Raises if <label> has attribute.

static Handle_TDataXtd_Shape Set (const TDF_Label &label, const TopoDS_Shape &shape)
 Create or update associated NamedShape attribute. the
Shape attribute is returned.

static TopoDS_Shape Get (const TDF_Label &label)
 the Shape from associated NamedShape attribute
is returned.

static const Standard_GUIDGetID ()
 Shape methods
============


Constructor & Destructor Documentation

TDataXtd_Shape::TDataXtd_Shape ( )

Member Function Documentation

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

Reimplemented from TDF_Attribute.

static Standard_Boolean TDataXtd_Shape::Find ( const TDF_Label current,
Handle< TDataXtd_Shape > &  S 
) [static]
static TopoDS_Shape TDataXtd_Shape::Get ( const TDF_Label label) [static]
static const Standard_GUID& TDataXtd_Shape::GetID ( ) [static]
const Standard_GUID& TDataXtd_Shape::ID ( ) const [virtual]

Implements TDF_Attribute.

static Handle_TDataXtd_Shape TDataXtd_Shape::New ( const TDF_Label label) [static]
Handle_TDF_Attribute TDataXtd_Shape::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Reimplemented from TDF_Attribute.

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

Implements TDF_Attribute.

static Handle_TDataXtd_Shape TDataXtd_Shape::Set ( const TDF_Label label,
const TopoDS_Shape shape 
) [static]

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