OCC Main Page | ApplicationFramework | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ApplicationFramework
TKLCAF
TNaming


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.
.

#include <TNaming_Iterator.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT TNaming_Iterator (const Handle(TNaming_NamedShape)&anAtt)
 Iterates on all the history records in
<anatt>.
.
Standard_EXPORT TNaming_Iterator (const TDF_Label &aLabel)
 Iterates on all the history records in
the current transaction
.
Standard_EXPORT TNaming_Iterator (const TDF_Label &aLabel, const Standard_Integer aTrans)
 Iterates on all the history records in
the transaction <atrans>
.
Standard_Boolean More () const
 Returns True if there is a current Item in
the iteration.
.
Standard_EXPORT void Next ()
 Moves the iteration to the next Item
.
Standard_EXPORT const TopoDS_Shape & OldShape () const
 Returns the old shape in this iterator object.
This shape can be a null one.
.
Standard_EXPORT const TopoDS_Shape & NewShape () const
 Returns the new shape in this iterator object.
.
Standard_EXPORT Standard_Boolean IsModification () const
 Returns true if the new shape is a modification (split,
fuse,etc...) of the old shape.

.
Standard_EXPORT TNaming_Evolution Evolution () const

Private Attributes

TNaming_PtrNode myNode
Standard_Integer myTrans


Constructor & Destructor Documentation

Standard_EXPORT TNaming_Iterator::TNaming_Iterator const Handle(TNaming_NamedShape)&  anAtt  ) 
 

Standard_EXPORT TNaming_Iterator::TNaming_Iterator const TDF_Label aLabel  ) 
 

Standard_EXPORT TNaming_Iterator::TNaming_Iterator const TDF_Label aLabel,
const Standard_Integer  aTrans
 


Member Function Documentation

Standard_EXPORT TNaming_Evolution TNaming_Iterator::Evolution  )  const
 

Standard_EXPORT Standard_Boolean TNaming_Iterator::IsModification  )  const
 

Standard_Boolean TNaming_Iterator::More  )  const [inline]
 

Standard_EXPORT const TopoDS_Shape& TNaming_Iterator::NewShape  )  const
 

Standard_EXPORT void TNaming_Iterator::Next  ) 
 

Standard_EXPORT const TopoDS_Shape& TNaming_Iterator::OldShape  )  const
 

void TNaming_Iterator::operator delete void *  anAddress  )  [inline]
 

void* TNaming_Iterator::operator new size_t  size  )  [inline]
 

void* TNaming_Iterator::operator new size_t  ,
void *  anAddress
[inline]
 


Field Documentation

TNaming_PtrNode TNaming_Iterator::myNode [private]
 

Standard_Integer TNaming_Iterator::myTrans [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 14:15:39 2008 for OpenCASCADE by  doxygen 1.4.1