Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
C++Python
Cmaxwell::Ccluster::CiteratorCclusterIterator

Iterates over all triangle cluster clusters in a scene.

Methods

NameDescription
CiteratorClass constructor.
~CiteratorClass destructor.
firstGets the first cluster of the scene.
nextGets the next cluster.

Anchor
ctor
ctor

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCclusterIterator()

Anchor
first
first

first

Gets first cluster of the scene.

LanguageSyntax
C++Cmaxwell::Ccluster first( Cmaxwell* pMaxwell )
PythonCcluster first( Cmaxwell pMaxwell )

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster cluster = it.first( scene ); 
Code Block
titlePython
it = CclusterIterator

...

Methods

NameDescription
Citerator 
~Citerator 
first 
next 

...

();
cluster = it.first( scene ); 

 

Anchor
next
next

next

Gets next cluster.

LanguageSyntax
C++Cmaxwell::Ccluster next()
PythonCcluster next()

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccluster::Citerator it;
Cmaxwell::Ccluster camera = it.first( scene );

while( !cluster.isNull() )
{
  // Do something with the cluster.

  cluster = it.next();
}        
Code Block
titlePython
it = CclusterIterator();
cluster = it.first( scene );

while not cluster.isNull():

  # Do something with the cluster.

  cluster = it.next();