Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

C++Python
Cmaxwell::Ccamera::CiteratorCmaxwellCameraIterator

Iterates over all cameras in the scene.

Methods

NameDescription
Citerator (Ccamera)Class constructor.
~CiteratorClass destructor.
Citerator (Ccamera)#firstGets first camera of the scene.
Citerator (Ccamera)#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();       

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels