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

This attribute store the topological naming of any
selected shape, when this shape is not already
attached to a specific label. This class is also used
to solve it when the argumentsof the toipological
naming are modified.

#include <TNaming_Naming.hxx>

Inheritance diagram for TNaming_Naming:
Inheritance graph
[legend]

Public Member Functions

 TNaming_Naming ()
Standard_Boolean IsDefined () const
const TNaming_NameGetName () const
TNaming_NameChangeName ()
Standard_Boolean Regenerate (TDF_LabelMap &scope)
 regenerate only the Name associated to me

Standard_Boolean Solve (TDF_LabelMap &scope)
 Regenerate recursively the whole name with scope. If
scope is empty it means that all the labels of the
framework are valid.

virtual const Standard_GUIDID () const
 Deferred methods from TDF_Attribute
===================================

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

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

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 > &aDataSet) 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>.


virtual void ExtendedDump (Standard_OStream &anOS, const TDF_IDFilter &aFilter, TDF_AttributeIndexedMap &aMap) const
 Dumps the attribute content on <aStream>, using
<aMap> like this: if an attribute is not in the
map, first put add it to the map and then dump it.
Use the map rank instead of dumping each attribute
field.

Static Public Member Functions

static const Standard_GUIDGetID ()
 following code from TDesignStd
==============================

static Handle_TNaming_Naming Insert (const TDF_Label &under)
static Handle_TNaming_NamedShape Name (const TDF_Label &where, const TopoDS_Shape &Selection, const TopoDS_Shape &Context, const Standard_Boolean Geometry=Standard_False, const Standard_Boolean KeepOrientation=Standard_False, const Standard_Boolean BNproblem=Standard_False)
 Creates a Namimg attribute at label <where> to
identify the shape <Selection>. Geometry is
Standard_True if we are only interested by the
underlying geometry (e.g. setting a
constraint). <Context> is used to find neighbours of
<S> when required by the naming.
If KeepOrientation is True the Selection orientation is taken
into account. BNproblem == True points out that Context sub-shapes
in DF have orientation differences with Context shape itself.
//! instance method
===============


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from TDF_Attribute.

virtual void TNaming_Naming::ExtendedDump ( Standard_OStream anOS,
const TDF_IDFilter aFilter,
TDF_AttributeIndexedMap aMap 
) const [virtual]

Reimplemented from TDF_Attribute.

virtual const Standard_GUID& TNaming_Naming::ID ( ) const [virtual]

Implements TDF_Attribute.

static Handle_TNaming_Naming TNaming_Naming::Insert ( const TDF_Label under) [static]
static Handle_TNaming_NamedShape TNaming_Naming::Name ( const TDF_Label where,
const TopoDS_Shape Selection,
const TopoDS_Shape Context,
const Standard_Boolean  Geometry = Standard_False,
const Standard_Boolean  KeepOrientation = Standard_False,
const Standard_Boolean  BNproblem = Standard_False 
) [static]
Handle_TDF_Attribute TNaming_Naming::NewEmpty ( ) const [virtual]

Implements TDF_Attribute.

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

Implements TDF_Attribute.

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

Reimplemented from TDF_Attribute.

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

Implements TDF_Attribute.


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