Hide menu
Loading...
Searching...
No Matches
cadex::ModelData_BRepRepresentation::LayerIterator Class Reference

Iterator over subshape layers. More...

#include <cadex/ModelData_BRepRepresentation.hxx>

Public Member Functions

 LayerIterator (const ModelData_Shape &theSubshape, const ModelData_BRepRepresentation &theRep)
 Constructor.
 
 LayerIterator (const TopoDS_Shape &theSubshape, const ModelData_BRepRepresentation &theRep)
 Constructor.
 
bool HasNext () const
 Returns true if iterator points to valid element.
 
ModelData_Layer Next ()
 Returns current layer and moves iterator to the next one.
 

Detailed Description

Iterator over subshape layers.

Provides Java style iterator API. Example:

ModelData_Face aFace; // belongs to aRep
while (i.HasNext()) {
ModelData_Layer aLayer = i.Next();
}
Iterator over subshape layers.
Definition: ModelData_BRepRepresentation.hxx:123
Defines precise Boundary Representation of part.
Definition: ModelData_BRepRepresentation.hxx:39
Defines a topological face.
Definition: ModelData_Face.hxx:32
Provides a layer of objects.
Definition: ModelData_Layer.hxx:34

Constructor & Destructor Documentation

◆ LayerIterator() [1/2]

cadex::ModelData_BRepRepresentation::LayerIterator::LayerIterator ( const ModelData_Shape theSubshape,
const ModelData_BRepRepresentation theRep 
)

Constructor.

theSubshape should belong to theRep.

◆ LayerIterator() [2/2]

cadex::ModelData_BRepRepresentation::LayerIterator::LayerIterator ( const TopoDS_Shape &  theSubshape,
const ModelData_BRepRepresentation theRep 
)

Constructor.

theSubshape should belong to theRep.