Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Iterates over all cameras in the scene.

C++Python
Cmaxwell::Ccamera::CiteratorCmaxwellCameraIterator

Iterates over all cameras in the scene.

Methods

NameDescription
CiteratorClass constructor.
~CiteratorClass destructor.
first Gets first camera of the scene.
next Gets next camera.

Anchor
cmaxwellccameraciteratorctor
cmaxwellccameraciteratorctor

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellCameraIterator()

Anchor
first
first

first

Gets first camera of the scene.

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

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene ); 
Code Block
languagejavascript
titlePython
it = CmaxwellCameraIterator();
camera = it.first( scene ); 

 

Anchor
next
next

next

Gets next camera.

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

Examples

Code Block
languagecpp
titleC++
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene );

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

  camera = it.next();
}        
Code Block
languagejavascript
titlePython
it = CmaxwellCameraIterator();
camera = it.first( scene );

while not camera.isNull():

  # Do something with the camera.

  camera = it.next();