All Frameworks  Class Hierarchy  This Framework  Indexes

MecModInterfaces Class CATVisuFeatureIterator

CATVisuFeatureIterator
 

Usage: you can derive this class.


public class CATVisuFeatureIterator

Class to use as an iterator over a set of feature.
Role: This class is used as an output parameter of CATIVisuHierarchy methods. Users of CATIVisuHierarchy run the iterator to get all features with the 'Next' method. If one intends to implement CATIVisuHierarchy, he will have to derive CATVisuFeatureIterator and implement the 'Next' method. CATIVisuHierarchy must allocate the output iterator with the C++ new operator. Users of CATIVisuHierarchy will have to delete the iterator after use.


Constructor and Destructor Index


o CATVisuFeatureIterator()
Constructor.
o ~CATVisuFeatureIterator()

Method Index


o Next()
Returns the next object of the iteration, NULL if it is over.

Constructor and Destructor


o CATVisuFeatureIterator
public CATVisuFeatureIterator()
Constructor. This class can not be instantiated.
o ~CATVisuFeatureIterator
public virtual ~CATVisuFeatureIterator()

Methods


o Next
public virtual CATISpecObject * Next()= 0
Returns the next object of the iteration, NULL if it is over.
The returned feature life cycle is monitored by the iterator. So, to use the returned feature longer than the iterator AddRef the returned value and Release when it is not needed any more.

This object is included in the file: CATVisuFeatureIterator.h

Copyright © 2003, Dassault Systèmes. All rights reserved.