Open CASCADE Technology  6.9.1
Public Member Functions
TopOpeBRepTool_ShapeExplorer Class Reference

#include <TopOpeBRepTool_ShapeExplorer.hxx>

Public Member Functions

 TopOpeBRepTool_ShapeExplorer ()
 Creates an empty explorer, becomes usefull after Init. More...
 
 TopOpeBRepTool_ShapeExplorer (const TopoDS_Shape &S, const TopAbs_ShapeEnum ToFind, const TopAbs_ShapeEnum ToAvoid=TopAbs_SHAPE)
 Creates an Explorer on the Shape <S>. More...
 
void Init (const TopoDS_Shape &S, const TopAbs_ShapeEnum ToFind, const TopAbs_ShapeEnum ToAvoid=TopAbs_SHAPE)
 
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. More...
 
const TopoDS_ShapeCurrent () const
 Returns the current shape in the exploration. More...
 
Standard_Integer NbShapes () const
 
Standard_Integer Index () const
 
Standard_OStreamDumpCurrent (Standard_OStream &OS) const
 

Constructor & Destructor Documentation

TopOpeBRepTool_ShapeExplorer::TopOpeBRepTool_ShapeExplorer ( )

Creates an empty explorer, becomes usefull after Init.

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

Creates an Explorer on the Shape <S>.

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

Member Function Documentation

const TopoDS_Shape& TopOpeBRepTool_ShapeExplorer::Current ( ) const

Returns the current shape in the exploration.

Standard_OStream& TopOpeBRepTool_ShapeExplorer::DumpCurrent ( Standard_OStream OS) const
Standard_Integer TopOpeBRepTool_ShapeExplorer::Index ( ) const
void TopOpeBRepTool_ShapeExplorer::Init ( const TopoDS_Shape S,
const TopAbs_ShapeEnum  ToFind,
const TopAbs_ShapeEnum  ToAvoid = TopAbs_SHAPE 
)
Standard_Boolean TopOpeBRepTool_ShapeExplorer::More ( ) const

Returns True if there are more shapes in the exploration.

Standard_Integer TopOpeBRepTool_ShapeExplorer::NbShapes ( ) const
void TopOpeBRepTool_ShapeExplorer::Next ( )

Moves to the next Shape in the exploration.


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