C++ | Python |
---|---|
Cmaxwell::Cobject::Citerator | CmaxwellObjectIterator |
Iterates over all objects in a scene.
Methods
Name | Description |
---|---|
Citerator | Class constructor. |
~Citerator | Class destructor. |
Citerator (Cobject)#first | Gets first object of the scene. |
Citerator (Cobject)#next | Gets next object. |
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CmaxwellObjectterator() |
first
Gets first object of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cobject first( Cmaxwell* pMaxwell ) |
Python | CmaxwellObject first( Cmaxwell pMaxwell ) |
Examples
C++
Cmaxwell::Cobject::Citerator it; Cmaxwell::Cobject object = it.first( scene );
Python
it = CmaxwellCobjectIterator(); object = it.first( scene );
next
Gets next object.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cobject next() |
Python | CmaxwellCobject next() |
Examples
C++
Cmaxwell::Cobject::Citerator it; Cmaxwell::Cobject object = it.first( scene ); while( !object.isNull() ) { // Do something with the object object = it.next(); }
Python
it = CmaxwellCobjectIterator(); object = it.first( scene ); while not object.isNull(): # Do something with the object object= it.next();