FBX C++ API Reference
FbxIteratorSrc< Type > Class Template Reference

A utility class for iterating over source objects that connect to property (FbxProperty) or object (FbxObject). More...

#include <fbxobject.h>

+ Inheritance diagram for FbxIteratorSrc< Type >:

Public Member Functions

 FbxIteratorSrc (FbxObject *pObject)
 Constructor. More...
 
 FbxIteratorSrc (FbxProperty &pProperty)
 Constructor. More...
 
Type * GetFirst ()
 Get the first source object that connects to the property or object. More...
 
Type * GetNext ()
 Get next source object that connects to the property or object. More...
 
Type * GetSafeNext ()
 Get next source object that connects to the property or object. More...
 
Type * GetLast ()
 Get the last source object that connects to the property or object. More...
 
Type * GetPrevious ()
 Get previous source object that connects to the property or object. More...
 
Type * GetSafePrevious ()
 Get previous source object that connects to the property or object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from FbxIteratorSrcBase
void ResetToBegin ()
 Reset the iterate index to the beginning. More...
 
void ResetToEnd ()
 Reset the iterate index to the end. More...
 
 FbxIteratorSrcBase (FbxProperty &pProperty, FbxClassId pClassId)
 Constructor. More...
 
 FbxIteratorSrcBase (FbxObject *pObject, FbxClassId pClassId)
 Constructor. More...
 
FbxObjectGetFirst ()
 Get the first source object that connects to the property or object. More...
 
FbxObjectGetNext ()
 Get next source object that connects to the property or object. More...
 
FbxObjectGetSafeNext ()
 Get next source object that connects to the property or object. More...
 
FbxObjectGetLast ()
 Get the last source object that connects to the property or object. More...
 
FbxObjectGetPrevious ()
 Get previous source object that connects to the property or object. More...
 
FbxObjectGetSafePrevious ()
 Get previous source object that connects to the property or object. More...
 
- Protected Attributes inherited from FbxIteratorSrcBase
FbxProperty mProperty
 
FbxClassId mClassId
 The property to iterate. If iterate an object, this is the root property of the object. More...
 
int mSize
 The class ID specifies the type of the source objects to be retrieved. More...
 
int mIndex
 The number of source objects whose type is specified by mClassId. More...
 

Detailed Description

template<class Type>
class FbxIteratorSrc< Type >

A utility class for iterating over source objects that connect to property (FbxProperty) or object (FbxObject).

The class is a wrapper of FbxIteratorSrcBase with template.

Definition at line 1225 of file fbxobject.h.

Constructor & Destructor Documentation

FbxIteratorSrc ( FbxObject pObject)
inline

Constructor.

Parameters
pObjectFBX object. The iterator will iterate source objects that connect to it.

Definition at line 1232 of file fbxobject.h.

1232 : FbxIteratorSrcBase(pObject,Type::ClassId) {}
FbxIteratorSrcBase(FbxProperty &pProperty, FbxClassId pClassId)
Constructor.
Definition: fbxobject.h:1108
FbxIteratorSrc ( FbxProperty pProperty)
inline

Constructor.

Parameters
pPropertyProperty object. The iterator will iterate source objects that connect to it.

Definition at line 1238 of file fbxobject.h.

1238 : FbxIteratorSrcBase(pProperty,Type::ClassId) {}
FbxIteratorSrcBase(FbxProperty &pProperty, FbxClassId pClassId)
Constructor.
Definition: fbxobject.h:1108

Member Function Documentation

Type* GetFirst ( )
inline

Get the first source object that connects to the property or object.

Returns
The first source object.

Definition at line 1244 of file fbxobject.h.

1244 { return (Type*)FbxIteratorSrcBase::GetFirst(); }
FbxObject * GetFirst()
Get the first source object that connects to the property or object.
Definition: fbxobject.h:1135
Type* GetNext ( )
inline

Get next source object that connects to the property or object.

Returns
The next source object. If there are no more objects, return NULL.

Definition at line 1250 of file fbxobject.h.

1250 { return (Type*)FbxIteratorSrcBase::GetNext(); }
FbxObject * GetNext()
Get next source object that connects to the property or object.
Definition: fbxobject.h:1145
Type* GetSafeNext ( )
inline

Get next source object that connects to the property or object.

Returns
The next source object. If there are no more objects, return NULL.
Remarks
This method makes sure the iterate index is not out of bounds.

Definition at line 1257 of file fbxobject.h.

1257 { return (Type*)FbxIteratorSrcBase::GetSafeNext(); }
FbxObject * GetSafeNext()
Get next source object that connects to the property or object.
Definition: fbxobject.h:1156
Type* GetLast ( )
inline

Get the last source object that connects to the property or object.

Returns
The last source object.

Definition at line 1263 of file fbxobject.h.

1263 { return (Type*)FbxIteratorSrcBase::GetLast(); }
FbxObject * GetLast()
Get the last source object that connects to the property or object.
Definition: fbxobject.h:1166
Type* GetPrevious ( )
inline

Get previous source object that connects to the property or object.

Returns
The previous source object. If there are no more objects, return NULL.

Definition at line 1270 of file fbxobject.h.

1270 { return (Type*)FbxIteratorSrcBase::GetPrevious(); }
FbxObject * GetPrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1176
Type* GetSafePrevious ( )
inline

Get previous source object that connects to the property or object.

Returns
The previous source object. If there are no more objects, return NULL.
Remarks
This method makes sure the iterate index is not out of bounds. If the iterate index is out of bounds, the last source object is returned.

Definition at line 1278 of file fbxobject.h.

1278 { return (Type*)FbxIteratorSrcBase::GetSafePrevious(); }
FbxObject * GetSafePrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1188

The documentation for this class was generated from the following file: