Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions | Protected Attributes
TObj_ModelIterator Class Reference

#include <TObj_ModelIterator.hxx>

Inheritance diagram for TObj_ModelIterator:
Inheritance graph
[legend]

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_ObjectValue () 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_ObjectmyObject
 Current object.
TObj_SequenceOfIterator myIterSeq
 Sequence of iterators in model.

Detailed Description

This class provides an iterator by all objects in the model.


Constructor & Destructor Documentation

TObj_ModelIterator::TObj_ModelIterator ( const Handle< TObj_Model > &  theModel)

Constructor


Member Function Documentation

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.


Field Documentation

TObj_SequenceOfIterator TObj_ModelIterator::myIterSeq [protected]

Fields


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines