Open CASCADE Technology  6.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions
TNaming_Iterator Class Reference

A tool to visit the contents of a named shape attribute.
Pairs of shapes in the attribute are iterated, one
being the pre-modification or the old shape, and
the other the post-modification or the new shape.
This allows you to have a full access to all
contents of an attribute. If, on the other hand, you
are only interested in topological entities stored
in the attribute, you can use the functions
GetShape and CurrentShape in TNaming_Tool.
More...

#include <TNaming_Iterator.hxx>

Public Member Functions

 TNaming_Iterator (const Handle< TNaming_NamedShape > &anAtt)
 Iterates on all the history records in
<anAtt>.
More...
 
 TNaming_Iterator (const TDF_Label &aLabel)
 Iterates on all the history records in
the current transaction
More...
 
 TNaming_Iterator (const TDF_Label &aLabel, const Standard_Integer aTrans)
 Iterates on all the history records in
the transaction <aTrans>
More...
 
Standard_Boolean More () const
 Returns True if there is a current Item in
the iteration.
More...
 
void Next ()
 Moves the iteration to the next Item
More...
 
const TopoDS_ShapeOldShape () const
 
 Returns the old shape in this iterator object. <br>

This shape can be a null one.
More...

 
const TopoDS_ShapeNewShape () const
 Returns the new shape in this iterator object.
More...
 
Standard_Boolean IsModification () const
 
 Returns true if the  new  shape is a modification  (split, <br>
     fuse,etc...) of the old shape. <br>


More...

 
TNaming_Evolution Evolution () const
 

Detailed Description

A tool to visit the contents of a named shape attribute.
Pairs of shapes in the attribute are iterated, one
being the pre-modification or the old shape, and
the other the post-modification or the new shape.
This allows you to have a full access to all
contents of an attribute. If, on the other hand, you
are only interested in topological entities stored
in the attribute, you can use the functions
GetShape and CurrentShape in TNaming_Tool.

Constructor & Destructor Documentation

TNaming_Iterator::TNaming_Iterator ( const Handle< TNaming_NamedShape > &  anAtt)

Iterates on all the history records in
<anAtt>.

TNaming_Iterator::TNaming_Iterator ( const TDF_Label aLabel)

Iterates on all the history records in
the current transaction

TNaming_Iterator::TNaming_Iterator ( const TDF_Label aLabel,
const Standard_Integer  aTrans 
)

Iterates on all the history records in
the transaction <aTrans>

Member Function Documentation

TNaming_Evolution TNaming_Iterator::Evolution ( ) const
Standard_Boolean TNaming_Iterator::IsModification ( ) const

 Returns true if the  new  shape is a modification  (split, <br>
     fuse,etc...) of the old shape. <br>


Standard_Boolean TNaming_Iterator::More ( ) const

Returns True if there is a current Item in
the iteration.

const TopoDS_Shape& TNaming_Iterator::NewShape ( ) const

Returns the new shape in this iterator object.

void TNaming_Iterator::Next ( )

Moves the iteration to the next Item

const TopoDS_Shape& TNaming_Iterator::OldShape ( ) const

 Returns the old shape in this iterator object. <br>

This shape can be a null one.


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