Citerator (Cobject)

C++Python
Cmaxwell::Cobject::CiteratorCmaxwellObjectIterator

Iterates over all objects in a scene.

Methods

NameDescription
CiteratorClass constructor.
~CiteratorClass destructor.
firstGets first object of the scene.
nextGets next object.

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellObjectterator()

first

Gets first object of the scene.

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

Examples

C++
Cmaxwell::Cobject::Citerator it;
Cmaxwell::Cobject object = it.first( scene ); 
Python
it = CmaxwellCobjectIterator();
object = it.first( scene ); 

next

Gets next object.

LanguageSyntax
C++

Cmaxwell::Cobject next()

Python

CmaxwellCobject next()

Examples

C++
Cmaxwell::Cobject::Citerator it;
Cmaxwell::Cobject object = it.first( scene );
 
while( !object.isNull() )
{
 
  // Do something with the object
  
  object = it.next();
}     
Python
it = CmaxwellCobjectIterator();
object = it.first( scene ); 
 
while not object.isNull():
 
  # Do something with the object
 
  object= it.next();   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Â