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 5 Current »

C++Python
Cmaxwell::Cobject::CiteratorCmaxwellObjectIterator

Iterates over all objects in a scene.

Methods

NameDescription
CiteratorClass constructor.
~CiteratorClass destructor.
firstGets first object of the scene.
nextGets next object.

Citerator

Class constructor

LanguageSyntax
C++Citerator()
PythonCmaxwellObjectterator()

first

Gets first object of the scene.

LanguageSyntax
C++Cmaxwell::Cobject first( Cmaxwell* pMaxwell )
PythonCmaxwellObject first( Cmaxwell pMaxwell )

Examples

C++
Cmaxwell::Cobject::Citerator it;
Cmaxwell::Cobject object = it.first( scene ); 
Python
it = CmaxwellCobjectIterator();
object = it.first( scene ); 

next

Gets next object.

LanguageSyntax
C++

Cmaxwell::Cobject next()

Python

CmaxwellCobject next()

Examples

C++
Cmaxwell::Cobject::Citerator it;
Cmaxwell::Cobject object = it.first( scene );
 
while( !object.isNull() )
{
 
  // Do something with the object
  
  object = it.next();
}     
Python
it = CmaxwellCobjectIterator();
object = it.first( scene ); 
 
while not object.isNull():
 
  # Do something with the object
 
  object= it.next();   

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • No labels