#include <FCDSceneNodeIterator.h>
Public Types | |
enum | SearchType { BREADTH_FIRST, DEPTH_FIRST_PREORDER, DEPTH_FIRST_POSTORDER } |
The order in which the scene nodes should be iterated. More... | |
Public Member Functions | |
FCDSceneNodeIteratorT (_NODE *root, SearchType searchType=BREADTH_FIRST, bool pureChildOnly=false) | |
Constructor. | |
~FCDSceneNodeIteratorT () | |
Destructor. | |
_NODE * | GetNode () |
Retrieves the current node to process. | |
_NODE * | Next () |
Advances the iteration pointer and retrieves the next node to process. | |
bool | IsDone () |
Retrieves whether the full sub-tree has been processed. | |
FCDSceneNodeIteratorT & | operator++ () |
Advances the iteration pointer. | |
_NODE * | operator * () |
Retrieves the current node to process. |
We use a template here in order to easily support both const and non-const scene node data, with the same code.
Do not use this template directly, instead use the FCDSceneNodeIterator and FCDSceneNodeConstIterator definitions.
This template does not care whether multiple instances of the same node is processed.
|
|
Constructor.
|
|
Retrieves the current node to process.
|
|
Advances the iteration pointer and retrieves the next node to process.
|
|
Retrieves the current node to process.
|
|
Advances the iteration pointer.
|