Open CASCADE Technology 6.6.0
|
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>
Public Member Functions | |
TNaming_Naming () | |
Standard_Boolean | IsDefined () const |
const TNaming_Name & | GetName () const |
TNaming_Name & | ChangeName () |
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_GUID & | ID () 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_OStream & | Dump (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_GUID & | GetID () |
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 =============== |
TNaming_Naming::TNaming_Naming | ( | ) |
TNaming_Name& TNaming_Naming::ChangeName | ( | ) |
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.
static const Standard_GUID& TNaming_Naming::GetID | ( | ) | [static] |
const TNaming_Name& TNaming_Naming::GetName | ( | ) | const |
virtual const Standard_GUID& TNaming_Naming::ID | ( | ) | const [virtual] |
Implements TDF_Attribute.
static Handle_TNaming_Naming TNaming_Naming::Insert | ( | const TDF_Label & | under | ) | [static] |
Standard_Boolean TNaming_Naming::IsDefined | ( | ) | const |
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.
Standard_Boolean TNaming_Naming::Regenerate | ( | TDF_LabelMap & | scope | ) |
void TNaming_Naming::Restore | ( | const Handle< TDF_Attribute > & | anAttribute | ) | [virtual] |
Implements TDF_Attribute.
Standard_Boolean TNaming_Naming::Solve | ( | TDF_LabelMap & | scope | ) |