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. |
Anchor | ||||
---|---|---|---|---|
|
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CmaxwellMaterialIterator() |
Anchor | ||||
---|---|---|---|---|
|
first
Gets first material of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cmaterial first( Cmaxwell* pMaxwell ) |
Python | CmaxwellMaterial first( Cmaxwell pMaxwell ) |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Cmaterial::Citerator it; Cmaxwell::Cmaterial material = it.first( scene ); |
Code Block | ||||
---|---|---|---|---|
| ||||
it = CmaxwellMaterialIterator |
...
Methods
Name | Description |
---|---|
Citerator | |
~Citerator | |
first | |
next |
...
();
material = it.first( scene ); |
Anchor | ||||
---|---|---|---|---|
|
next
Gets next material.
Language | Syntax |
---|---|
C++ | Cmaxwell::Cmaterial next() |
Python | CmaxwellMaterial next() |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene );
while( !material.isNull() )
{
// Do something with the material
material = it.next();
} |
Code Block | ||||
---|---|---|---|---|
| ||||
it = CmaxwellMaterialIterator();
material = it.first( scene );
while not material.isNull():
# Do something with the material
material = it.next(); |