Iterates over all cameras in the scene.
C++ | Python |
---|---|
Cmaxwell::Ccamera::Citerator | CmaxwellCameraIterator |
Iterates over all cameras in the scene.
Methods
...
Name | Description |
---|---|
Citerator (Ccamera) | Class constructor. |
~Citerator | Class destructor. |
first | |
next |
...
Gets first camera of the scene. | |
next | Gets next camera. |
Anchor | ||||
---|---|---|---|---|
|
Citerator
Class constructor
Language | Syntax |
---|---|
C++ | Citerator() |
Python | CmaxwellCameraIterator() |
Anchor | ||||
---|---|---|---|---|
|
first
Gets first camera of the scene.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccamera first( Cmaxwell* pMaxwell ) |
Python | CmaxwellCamera first( Cmaxwell pMaxwell ) |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene ); |
Code Block | ||
---|---|---|
| ||
it = CmaxwellCameraIterator();
camera = it.first( scene ); |
Anchor | ||||
---|---|---|---|---|
|
next
Gets next camera.
Language | Syntax |
---|---|
C++ | Cmaxwell::Ccamera next() |
Python | CmaxwellCamera next() |
Examples
Code Block | ||||
---|---|---|---|---|
| ||||
Cmaxwell::Ccamera::Citerator it;
Cmaxwell::Ccamera camera = it.first( scene );
while( !camera.isNull() )
{
// Do something with the camera.
camera = it.next();
} |
Code Block | ||
---|---|---|
| ||
it = CmaxwellCameraIterator();
camera = it.first( scene );
while not camera.isNull():
# Do something with the camera.
camera = it.next(); |