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

Iterator over added graphical elements. More...

#include <cadex/ModelData_BRepRepresentation.hxx>

Public Member Functions

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

Detailed Description

Iterator over added graphical elements.

Supports a Java style iterator.

Constructor & Destructor Documentation

◆ PMIDataIterator() [1/2]

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

Constructor.

Iterator will iterate over graphical elements that have been assigned to this subshape in the order in which they were added with the AddPMIData() method.

theSubshape should belong to theRep.

◆ PMIDataIterator() [2/2]

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

Constructor.

theSubshape should belong to theRep.