Citerator (Cmaterial)

C++Python
Cmaxwell::Cmaterial::CiteratorCmaxwellMaterialIterator

Iterates over all materials in a scene.

Methods

NameDescription
Citerator (Cmaterial)Class constructor.
~CiteratorClass destructor.
firstGets first material of the scene.
nextGets next material.

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellMaterialIterator()

first

Gets first material of the scene.

LanguageSyntax
C++Cmaxwell::Cmaterial first( Cmaxwell* pMaxwell )
PythonCmaxwellMaterial 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.

LanguageSyntax
C++Cmaxwell::Cmaterial next()
PythonCmaxwellMaterial 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();   

 

 

 

 

 

 

 

 

 

Â