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

ModelingData
TKBRep
TopoDS


TopoDS_Iterator Class Reference

Iterates on the underlying shape underlying a given
TopoDS_Shape object, providing access to its
component sub-shapes. Each component shape is
returned as a TopoDS_Shape with an orientation,
and a compound of the original values and the relative values.
.

#include <TopoDS_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 TopoDS_Iterator ()
 Creates an empty Iterator.
.
Standard_EXPORT TopoDS_Iterator (const TopoDS_Shape &S, const Standard_Boolean cumOri=Standard_True, const Standard_Boolean cumLoc=Standard_True)
 Creates an Iterator on <s> sub-shapes.
Note:
- If cumOri is true, the function composes all
sub-shapes with the orientation of S.
- If cumLoc is true, the function multiplies all
sub-shapes by the location of S, i.e. it applies to
each sub-shape the transformation that is associated with S.
.
Standard_EXPORT void Initialize (const TopoDS_Shape &S, const Standard_Boolean cumOri=Standard_True, const Standard_Boolean cumLoc=Standard_True)
 Initializes this iterator with shape S.
Note:
- If cumOri is true, the function composes all
sub-shapes with the orientation of S.
- If cumLoc is true, the function multiplies all
sub-shapes by the location of S, i.e. it applies to
each sub-shape the transformation that is associated with S.
.
Standard_Boolean More () const
 Returns true if there is another sub-shape in the
shape which this iterator is scanning.
.
Standard_EXPORT void Next ()
 Moves on to the next sub-shape in the shape which
this iterator is scanning.
Exceptions
Standard_NoMoreObject if there are no more sub-shapes in the shape.
.
const TopoDS_ShapeValue () const
 Returns the current sub-shape in the shape which
this iterator is scanning.
Exceptions
Standard_NoSuchObject if there is no current sub-shape.
.

Private Attributes

TopoDS_Shape myShape
TopoDS_ListIteratorOfListOfShape myShapes
TopAbs_Orientation myOrientation
TopLoc_Location myLocation


Constructor & Destructor Documentation

Standard_EXPORT TopoDS_Iterator::TopoDS_Iterator  ) 
 

Standard_EXPORT TopoDS_Iterator::TopoDS_Iterator const TopoDS_Shape S,
const Standard_Boolean  cumOri = Standard_True,
const Standard_Boolean  cumLoc = Standard_True
 


Member Function Documentation

Standard_EXPORT void TopoDS_Iterator::Initialize const TopoDS_Shape S,
const Standard_Boolean  cumOri = Standard_True,
const Standard_Boolean  cumLoc = Standard_True
 

Standard_Boolean TopoDS_Iterator::More  )  const [inline]
 

Standard_EXPORT void TopoDS_Iterator::Next  ) 
 

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

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

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

const TopoDS_Shape & TopoDS_Iterator::Value  )  const [inline]
 


Field Documentation

TopLoc_Location TopoDS_Iterator::myLocation [private]
 

TopAbs_Orientation TopoDS_Iterator::myOrientation [private]
 

TopoDS_Shape TopoDS_Iterator::myShape [private]
 

TopoDS_ListIteratorOfListOfShape TopoDS_Iterator::myShapes [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:23:09 2008 for OpenCASCADE by  doxygen 1.4.1