Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
C++Python
Cmaxwell::Cobject::CiteratorCmaxwellObjectIterator

Iterates over all objects in a scene.

Methods

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

Anchor
ctor
ctor

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellObjectterator()

Anchor
first
first

first

Gets first object of the scene.

LanguageSyntax
C++Cmaxwell::Cobject first( Cmaxwell* pMaxwell )
PythonCmaxwellObject first( Cmaxwell pMaxwell )

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Cobject::Citerator it;
Cmaxwell::Cobject object = it.first( scene ); 
Code Block
languagejavascript
titlePython
it = CmaxwellCobjectIterator();
object = it.first( scene ); 

Anchor
next
next

next

Gets next object.

LanguageSyntax
C++

Cmaxwell::Cobject next()

Python

CmaxwellCobject next()

Examples

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