Citerator (Ccamera)

C++Python
Cmaxwell::Ccamera::CiteratorCmaxwellCameraIterator

Iterates over all cameras in the scene.

Methods

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

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellCameraIterator()

first

Gets first camera of the scene.

LanguageSyntax
C++Cmaxwell::Ccamera first( Cmaxwell* pMaxwell )
PythonCmaxwellCamera first( Cmaxwell pMaxwell )

Examples

C++
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene ); 
Python
it = CmaxwellCameraIterator();
camera = it.first( scene ); 

 

next

Gets next camera.

LanguageSyntax
C++Cmaxwell::Ccamera next()
PythonCmaxwellCamera next()

Examples

C++
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene );

while( !camera.isNull() )
{
  // Do something with the camera.

  camera = it.next();
}        
Python
it = CmaxwellCameraIterator();
camera = it.first( scene );

while not camera.isNull():

  # Do something with the camera.

  camera = it.next();       

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Â