Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
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.

Anchor
ctor
ctor

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellMaterialIterator()

Anchor
first
first

first

Gets first material of the scene.

LanguageSyntax
C++Cmaxwell::Cmaterial first( Cmaxwell* pMaxwell )
PythonCmaxwellMaterial first( Cmaxwell pMaxwell )

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene ); 
Code Block
titlePython
it = CmaxwellMaterialIterator();
material = it.first( scene ); 

Anchor
next
next

next

Gets next material.

LanguageSyntax
C++Cmaxwell::Cmaterial next()
PythonCmaxwellMaterial next()

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Cmaterial::Citerator it;
Cmaxwell::Cmaterial material = it.first( scene );
 
while( !material.isNull() )
{
 
  // Do something with the material
  
  material = it.next();
}     
Code Block
titlePython
it = CmaxwellMaterialIterator();
material = it.first( scene ); 
 
while not material.isNull():
 
  # Do something with the material
 
  material = it.next();