C++ | Python |
---|---|
Cmaxwell::Cmaterial::Citerator | CmaxwellMaterialIterator |
Iterates over all materials in a scene.
Methods
Name | Description |
---|---|
Citerator (Cmaterial) | Class constructor. |
~Citerator | Class destructor. |
first | Gets first material of the scene. |
next | Gets next material. |
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CmaxwellMaterialIterator() |
first
Gets first material of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cmaterial first( Cmaxwell* pMaxwell ) |
Python | CmaxwellMaterial first( Cmaxwell pMaxwell ) |
Examples
C++
Cmaxwell::Cmaterial::Citerator it; Cmaxwell::Cmaterial material = it.first( scene );
Python
it = CmaxwellMaterialIterator(); material = it.first( scene );
next
Gets next material.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cmaterial next() |
Python | CmaxwellMaterial next() |
Examples
C++
Cmaxwell::Cmaterial::Citerator it; Cmaxwell::Cmaterial material = it.first( scene ); while( !material.isNull() ) { // Do something with the material material = it.next(); }
Python
it = CmaxwellMaterialIterator(); material = it.first( scene ); while not material.isNull(): # Do something with the material material = it.next();