FBX C++ API Reference
FbxIteratorSrcBase Class Reference

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

#include <fbxobject.h>

+ Inheritance diagram for FbxIteratorSrcBase:

Public Member Functions

 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 Member Functions

void ResetToBegin ()
 Reset the iterate index to the beginning. More...
 
void ResetToEnd ()
 Reset the iterate index to the end. More...
 

Protected Attributes

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

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

Definition at line 1100 of file fbxobject.h.

Constructor & Destructor Documentation

FbxIteratorSrcBase ( FbxProperty pProperty,
FbxClassId  pClassId 
)
inline

Constructor.

Parameters
pPropertyProperty object. The iterator will iterate source objects that connect to it.
pClassIdThe class ID specifies the type of the source objects.

Definition at line 1108 of file fbxobject.h.

1108  :
1109  mProperty(pProperty),
1110  mClassId(pClassId),
1111  mSize(0),
1112  mIndex(-1)
1113  {
1114  ResetToBegin();
1115  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1199
FbxIteratorSrcBase ( FbxObject pObject,
FbxClassId  pClassId 
)
inline

Constructor.

Parameters
pObjectFBX object. The iterator will iterate source objects that connect to it.
pClassIdThe class ID specifies the type of the source objects.

Definition at line 1122 of file fbxobject.h.

1122  :
1123  mProperty(pObject->RootProperty),
1124  mClassId(pClassId),
1125  mSize(0),
1126  mIndex(-1)
1127  {
1128  ResetToBegin();
1129  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1199
FbxProperty RootProperty
The root property that holds all children property for this object.
Definition: fbxobject.h:978

Member Function Documentation

FbxObject* GetFirst ( )
inline

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

Returns
The first source object.

Definition at line 1135 of file fbxobject.h.

1136  {
1137  ResetToBegin();
1138  return GetNext();
1139  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1199
FbxObject * GetNext()
Get next source object that connects to the property or object.
Definition: fbxobject.h:1145
FbxObject* 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 1145 of file fbxobject.h.

1146  {
1147  mIndex++;
1149  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
#define NULL
Definition: fbxarch.h:213
FbxObject * GetSrcObject(const int pIndex=0) const
Returns the source object at the specified index with which this property connects.
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
FbxObject* 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 1156 of file fbxobject.h.

1157  {
1159  return GetNext();
1160  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
int GetSrcObjectCount() const
Returns the number of source objects with which this property connects.
FbxObject * GetNext()
Get next source object that connects to the property or object.
Definition: fbxobject.h:1145
FbxObject* GetLast ( )
inline

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

Returns
The last source object.

Definition at line 1166 of file fbxobject.h.

1167  {
1168  ResetToEnd();
1169  return GetPrevious();
1170  }
FbxObject * GetPrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1176
void ResetToEnd()
Reset the iterate index to the end.
Definition: fbxobject.h:1208
FbxObject* 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 1176 of file fbxobject.h.

1177  {
1178  mIndex--;
1180  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
#define NULL
Definition: fbxarch.h:213
FbxObject * GetSrcObject(const int pIndex=0) const
Returns the source object at the specified index with which this property connects.
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
FbxObject* 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 1188 of file fbxobject.h.

1189  {
1191  while (mIndex>mSize) mIndex--;
1192  return GetPrevious();
1193  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxObject * GetPrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1176
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
int GetSrcObjectCount() const
Returns the number of source objects with which this property connects.
void ResetToBegin ( )
inlineprotected

Reset the iterate index to the beginning.

Definition at line 1199 of file fbxobject.h.

1200  {
1202  mIndex = -1;
1203  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
int GetSrcObjectCount() const
Returns the number of source objects with which this property connects.
void ResetToEnd ( )
inlineprotected

Reset the iterate index to the end.

Definition at line 1208 of file fbxobject.h.

1209  {
1211  mIndex = mSize;
1212  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1216
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1215
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1217
FbxProperty mProperty
Definition: fbxobject.h:1214
static FbxCriteria ObjectType(const FbxClassId &pClassId)
Creates a new query criteria that only selects objects which have a specific class ID or derive from ...
int GetSrcObjectCount() const
Returns the number of source objects with which this property connects.

Member Data Documentation

FbxProperty mProperty
protected

Definition at line 1214 of file fbxobject.h.

FbxClassId mClassId
protected

The property to iterate. If iterate an object, this is the root property of the object.

Definition at line 1215 of file fbxobject.h.

int mSize
protected

The class ID specifies the type of the source objects to be retrieved.

Definition at line 1216 of file fbxobject.h.

int mIndex
protected

The number of source objects whose type is specified by mClassId.

Definition at line 1217 of file fbxobject.h.


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