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