C++ | Python |
---|---|
Cmaxwell::Ccamera::Citerator | CmaxwellCameraIterator |
Iterates over all cameras in the scene.
Methods
Name | Description |
---|---|
Citerator | Class constructor. |
~Citerator | Class destructor. |
first | Gets first camera of the scene. |
next | Gets next camera. |
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CmaxwellCameraIterator() |
first
Gets first camera of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccamera first( Cmaxwell* pMaxwell ) |
Python | CmaxwellCamera 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.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccamera next() |
Python | CmaxwellCamera 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();