FBX C++ API Reference
FbxIteratorDstBase Class Reference

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

#include <fbxobject.h>

+ Inheritance diagram for FbxIteratorDstBase:

Public Member Functions

 FbxIteratorDstBase (FbxProperty &pProperty, FbxClassId pClassId)
 Constructor. More...
 
 FbxIteratorDstBase (FbxObject *pObject, FbxClassId pClassId)
 Constructor. More...
 
FbxObjectGetFirst ()
 Get the first destination object that connects to the property or object. More...
 
FbxObjectGetNext ()
 Get next destination object that connects to the property or object. More...
 
FbxObjectGetSafeNext ()
 Get next destination object that connects to the property or object. More...
 
FbxObjectGetLast ()
 Get the last destination object that connects to the property or object. More...
 
FbxObjectGetPrevious ()
 Get previous destination object that connects to the property or object. More...
 
FbxObjectGetSafePrevious ()
 Get previous destination 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
 The property to iterate. More...
 
FbxClassId mClassId
 The class ID specifies the type of the destination objects to be retrieved. More...
 
int mSize
 The number of destination objects whose type is specified by mClassId. More...
 
int mIndex
 Iterate index. More...
 

Detailed Description

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

Definition at line 1284 of file fbxobject.h.

Constructor & Destructor Documentation

FbxIteratorDstBase ( FbxProperty pProperty,
FbxClassId  pClassId 
)
inline

Constructor.

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

Definition at line 1302 of file fbxobject.h.

1302  :
1303  mProperty(pProperty),
1304  mClassId(pClassId),
1305  mSize(0),
1306  mIndex(-1)
1307  {
1308  ResetToBegin();
1309  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1393
int mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
FbxIteratorDstBase ( 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 1316 of file fbxobject.h.

1316  :
1317  mProperty(pObject->RootProperty),
1318  mClassId(pClassId),
1319  mSize(0),
1320  mIndex(-1)
1321  {
1322  ResetToBegin();
1323  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1393
FbxProperty RootProperty
The root property that holds all children property for this object.
Definition: fbxobject.h:978
int mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290

Member Function Documentation

FbxObject* GetFirst ( )
inline

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

Returns
The first destination object.

Definition at line 1329 of file fbxobject.h.

1330  {
1331  ResetToBegin();
1332  return GetNext();
1333  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1393
FbxObject * GetNext()
Get next destination object that connects to the property or object.
Definition: fbxobject.h:1339
FbxObject* GetNext ( )
inline

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

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

Definition at line 1339 of file fbxobject.h.

1340  {
1341  mIndex++;
1343  }
FbxObject * GetDstObject(const int pIndex=0) const
Returns the destination object at the specified index with which this property connects.
#define NULL
Definition: fbxarch.h:213
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
FbxObject* GetSafeNext ( )
inline

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

Returns
The next destination 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 1350 of file fbxobject.h.

1351  {
1353  return GetNext();
1354  }
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxObject * GetNext()
Get next destination object that connects to the property or object.
Definition: fbxobject.h:1339
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
FbxObject* GetLast ( )
inline

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

Returns
The last destination object.

Definition at line 1360 of file fbxobject.h.

1361  {
1362  ResetToEnd();
1363  return GetPrevious();
1364  }
void ResetToEnd()
Reset the iterate index to the end.
Definition: fbxobject.h:1402
FbxObject * GetPrevious()
Get previous destination object that connects to the property or object.
Definition: fbxobject.h:1370
FbxObject* GetPrevious ( )
inline

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

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

Definition at line 1370 of file fbxobject.h.

1371  {
1372  mIndex--;
1374  }
FbxObject * GetDstObject(const int pIndex=0) const
Returns the destination object at the specified index with which this property connects.
#define NULL
Definition: fbxarch.h:213
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
FbxObject* GetSafePrevious ( )
inline

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

Returns
The previous destination 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 destination object is returned.

Definition at line 1382 of file fbxobject.h.

1383  {
1385  while (mIndex>mSize) mIndex--;
1386  return GetPrevious();
1387  }
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxObject * GetPrevious()
Get previous destination object that connects to the property or object.
Definition: fbxobject.h:1370
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
void ResetToBegin ( )
inlineprotected

Reset the iterate index to the beginning.

Definition at line 1393 of file fbxobject.h.

1394  {
1396  mIndex = -1;
1397  }
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290
void ResetToEnd ( )
inlineprotected

Reset the iterate index to the end.

Definition at line 1402 of file fbxobject.h.

1403  {
1405  mIndex = mSize;
1406  }
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 mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1292
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1294
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1288
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1290

Member Data Documentation

FbxProperty mProperty
protected

The property to iterate.

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

Definition at line 1288 of file fbxobject.h.

FbxClassId mClassId
protected

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

Definition at line 1290 of file fbxobject.h.

int mSize
protected

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

Definition at line 1292 of file fbxobject.h.

int mIndex
protected

Iterate index.

Definition at line 1294 of file fbxobject.h.


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