KFbxNodeIterator
#include<kfbxnodeiterator.h>

List of all members.

Detailed Description

This class and iterator type accesses the FbxNode hierarchy.

The iterator takes a root node that can be any parent node in theKFbxScene. The iterator will then only travel within the children of a given root.

Since the iterator becomes invalid when the scene hierarchy changes, the iterator should only used in a fixed scene hierarchy.

Definition at line59of filekfbxnodeiterator.h.


Public Types

enum TraversalType
 Method by which the node hierarchy is traversed.More...

Public Member Functions

 KFbxNodeIterator(KFbxNode*pRootNode,TraversalTypepType)
 Contructor.
 KFbxNodeIterator(constKFbxNodeIterator&pCopy)
 Copy Constructor.
virtual ~KFbxNodeIterator()
 Destructor.
virtualKFbxNodeGet()
 Get a pointer to the currentKFbxNode.
virtualKFbxNodeNext()
 Get a pointer to the nextKFbxNode.
virtualKFbxNodePrev()
 Get a pointer to the previousKFbxNodepointer.

Member Enumeration Documentation

Method by which the node hierarchy is traversed.

  • eDepthFirstThe leaf of the tree are first traversed
  • eBreadthFirstEach child is traversed before going down to the leafs
  • eDepthFirstParentLike depth first but the parent of the leafs are returned prior to the leafs themselves

Definition at line69of filekfbxnodeiterator.h.

Constructor&Destructor Documentation

Contructor.

Parameters:
pRootNode The root of the iterator hierarchy.
pType The traversal type.

Copy Constructor.

Parameters:
pCopy Iterator to copy

virtual ~KFbxNodeIterator( ) [virtual]

Destructor.

Member Function Documentation

virtualKFbxNode* Get( ) [virtual]

Get a pointer to the currentKFbxNode.

Returns:
The currentKFbxNodepointer.

virtualKFbxNode* Next( ) [virtual]

Get a pointer to the nextKFbxNode.

Returns:
The nextKFbxNodepointer, orNULLif the end is reached.

virtualKFbxNode* Prev( ) [virtual]

Get a pointer to the previousKFbxNodepointer.

Returns:
The previousKFbxNodepointer, orNULLif the root of the iterator is reached.