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

An Explorer is a Tool to visit a Topological Data
Structure form the TopoDS package.

An Explorer is built with :

More...

#include <TopExp_Explorer.hxx>

Public Member Functions

 TopExp_Explorer ()
 Creates an empty explorer, becomes usefull after Init.
More...
 
 TopExp_Explorer (const TopoDS_Shape &S, const TopAbs_ShapeEnum ToFind, const TopAbs_ShapeEnum ToAvoid=TopAbs_SHAPE)
 
 Creates an Explorer on the Shape <S>. <br>


<ToFind> is the type of shapes to search.
TopAbs_VERTEX, TopAbs_EDGE, ...

<ToAvoid> is the type of shape to skip in the
exploration. If <ToAvoid> is equal or less
complex than <ToFind> or if <ToAVoid> is SHAPE it
has no effect on the exploration.

More...

 
void Init (const TopoDS_Shape &S, const TopAbs_ShapeEnum ToFind, const TopAbs_ShapeEnum ToAvoid=TopAbs_SHAPE)
 
 Resets this explorer on the shape S. It is initialized to <br>

search the shape S, for shapes of type ToFind, that
are not part of a shape ToAvoid.
If the shape ToAvoid is equal to TopAbs_SHAPE, or
if it is the same as, or less complex than, the shape
ToFind it has no effect on the search.
More...

 
Standard_Boolean More () const
 Returns True if there are more shapes in the
exploration.
More...
 
void Next ()
 
 Moves to the next Shape in the exploration. <br>

Exceptions
Standard_NoMoreObject if there are no more shapes to explore.
More...

 
const TopoDS_ShapeCurrent () const
 
 Returns the current shape in the exploration. <br>

Exceptions
Standard_NoSuchObject if this explorer has no more shapes to explore.
More...

 
void ReInit ()
 Reinitialize the exploration with the original
arguments.
More...
 
Standard_Integer Depth () const
 Returns the current depth of the exploration. 0 is
the shape to explore itself.
More...
 
void Clear ()
 Clears the content of the explorer. It will return
False on More().
More...
 
void Destroy ()
 
 ~TopExp_Explorer ()
 

Detailed Description

An Explorer is a Tool to visit a Topological Data
Structure form the TopoDS package.

An Explorer is built with :

       * The Shape to explore. <br>


Constructor & Destructor Documentation

TopExp_Explorer::TopExp_Explorer ( )

Creates an empty explorer, becomes usefull after Init.

TopExp_Explorer::TopExp_Explorer ( const TopoDS_Shape S,
const TopAbs_ShapeEnum  ToFind,
const TopAbs_ShapeEnum  ToAvoid = TopAbs_SHAPE 
)

 Creates an Explorer on the Shape <S>. <br>


<ToFind> is the type of shapes to search.
TopAbs_VERTEX, TopAbs_EDGE, ...

<ToAvoid> is the type of shape to skip in the
exploration. If <ToAvoid> is equal or less
complex than <ToFind> or if <ToAVoid> is SHAPE it
has no effect on the exploration.

TopExp_Explorer::~TopExp_Explorer ( )
inline

Member Function Documentation

void TopExp_Explorer::Clear ( )

Clears the content of the explorer. It will return
False on More().

const TopoDS_Shape& TopExp_Explorer::Current ( ) const

 Returns the current shape in the exploration. <br>

Exceptions
Standard_NoSuchObject if this explorer has no more shapes to explore.

Standard_Integer TopExp_Explorer::Depth ( ) const

Returns the current depth of the exploration. 0 is
the shape to explore itself.

void TopExp_Explorer::Destroy ( )
void TopExp_Explorer::Init ( const TopoDS_Shape S,
const TopAbs_ShapeEnum  ToFind,
const TopAbs_ShapeEnum  ToAvoid = TopAbs_SHAPE 
)

 Resets this explorer on the shape S. It is initialized to <br>

search the shape S, for shapes of type ToFind, that
are not part of a shape ToAvoid.
If the shape ToAvoid is equal to TopAbs_SHAPE, or
if it is the same as, or less complex than, the shape
ToFind it has no effect on the search.

Standard_Boolean TopExp_Explorer::More ( ) const

Returns True if there are more shapes in the
exploration.

void TopExp_Explorer::Next ( )

 Moves to the next Shape in the exploration. <br>

Exceptions
Standard_NoMoreObject if there are no more shapes to explore.

void TopExp_Explorer::ReInit ( )

Reinitialize the exploration with the original
arguments.


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