Open CASCADE Technology 6.6.0
|
#include <TObj_ModelIterator.hxx>
Public Member Functions | |
TObj_ModelIterator (const Handle< TObj_Model > &theModel) | |
Creates Iterator and initialize it by Model`s label. | |
virtual Standard_Boolean | More () const |
Returns True if iteration is not finished and method Value() will give the object. | |
virtual void | Next () |
Iterates to the next object. | |
virtual Handle< TObj_Object > | Value () const |
Returns current object (or MainObj of Model if iteration has finished) | |
Protected Member Functions | |
virtual void | addIterator (const Handle< TObj_Object > &theObj) |
Add iterator on children of indicated object recursively. | |
Protected Attributes | |
Handle< TObj_Object > | myObject |
Current object. | |
TObj_SequenceOfIterator | myIterSeq |
Sequence of iterators in model. |
This class provides an iterator by all objects in the model.
TObj_ModelIterator::TObj_ModelIterator | ( | const Handle< TObj_Model > & | theModel | ) |
Constructor
virtual void TObj_ModelIterator::addIterator | ( | const Handle< TObj_Object > & | theObj | ) | [protected, virtual] |
private methods
virtual Standard_Boolean TObj_ModelIterator::More | ( | ) | const [virtual] |
Methods to iterate on objects.
Reimplemented from TObj_ObjectIterator.
virtual void TObj_ModelIterator::Next | ( | ) | [virtual] |
Reimplemented from TObj_ObjectIterator.
virtual Handle< TObj_Object > TObj_ModelIterator::Value | ( | ) | const [virtual] |
Reimplemented from TObj_ObjectIterator.
TObj_SequenceOfIterator TObj_ModelIterator::myIterSeq [protected] |
Handle< TObj_Object > TObj_ModelIterator::myObject [protected] |
Fields