FbxIteratorSrcBase Class Reference

#include <fbxobject.h>

Class Description

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

Definition at line 1155 of file 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...
 

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 1163 of file fbxobject.h.

1163  :
1164  mProperty(pProperty),
1165  mClassId(pClassId),
1166  mSize(0),
1167  mIndex(-1)
1168  {
1169  ResetToBegin();
1170  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1254
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 1177 of file fbxobject.h.

1177  :
1178  mProperty(pObject->RootProperty),
1179  mClassId(pClassId),
1180  mSize(0),
1181  mIndex(-1)
1182  {
1183  ResetToBegin();
1184  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1254
FbxProperty RootProperty
The root property that holds all children property for this object.
Definition: fbxobject.h:1033

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 1190 of file fbxobject.h.

1191  {
1192  ResetToBegin();
1193  return GetNext();
1194  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1254
FbxObject * GetNext()
Get next source object that connects to the property or object.
Definition: fbxobject.h:1200
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 1200 of file fbxobject.h.

1201  {
1202  mIndex++;
1204  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
#define NULL
Definition: fbxarch.h:210
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:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
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 1211 of file fbxobject.h.

1212  {
1214  return GetNext();
1215  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
FbxProperty mProperty
Definition: fbxobject.h:1269
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:1200
FbxObject* GetLast ( )
inline

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

Returns
The last source object.

Definition at line 1221 of file fbxobject.h.

1222  {
1223  ResetToEnd();
1224  return GetPrevious();
1225  }
FbxObject * GetPrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1231
void ResetToEnd()
Reset the iterate index to the end.
Definition: fbxobject.h:1263
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 1231 of file fbxobject.h.

1232  {
1233  mIndex--;
1235  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
#define NULL
Definition: fbxarch.h:210
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:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
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 1243 of file fbxobject.h.

1244  {
1246  while (mIndex>mSize) mIndex--;
1247  return GetPrevious();
1248  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1272
FbxObject * GetPrevious()
Get previous source object that connects to the property or object.
Definition: fbxobject.h:1231
FbxProperty mProperty
Definition: fbxobject.h:1269
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 1254 of file fbxobject.h.

1255  {
1257  mIndex = -1;
1258  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
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 1263 of file fbxobject.h.

1264  {
1266  mIndex = mSize;
1267  }
int mSize
The class ID specifies the type of the source objects to be retrieved.
Definition: fbxobject.h:1271
FbxClassId mClassId
The property to iterate. If iterate an object, this is the root property of the object.
Definition: fbxobject.h:1270
int mIndex
The number of source objects whose type is specified by mClassId.
Definition: fbxobject.h:1272
FbxProperty mProperty
Definition: fbxobject.h:1269
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 1269 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 1270 of file fbxobject.h.

int mSize
protected

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

Definition at line 1271 of file fbxobject.h.

int mIndex
protected

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

Definition at line 1272 of file fbxobject.h.


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