Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

C++Python
Cmaxwell::Cmaterial::CiteratorCmaxwellMaterialIterator

Iterates over all materials in a scene.

Methods

NameDescription
Citerator (Cmaterial)Class constructor.
~CiteratorClass destructor.
Citerator (Cmaterial)#firstGets first material of the scene.
Citerator (Cmaterial)#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();   

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels