Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Iterates over all cameras in the scene.

C++Python
Cmaxwell::Ccamera::CiteratorCmaxwellCameraIterator

Iterates over all cameras in the scene.

Methods

...

NameDescription
Citerator (Ccamera)Class constructor.
~CiteratorClass destructor.
first 
next 

...

Gets first camera of the scene.
nextGets next camera.

Anchor
ctor
ctor

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
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
titlePython
it = CmaxwellCameraIterator();
camera = it.first( scene );

while not camera.isNull():

  # Do something with the camera.

  camera = it.next();