A utility class for iterating over destination objects that connect to property (FbxProperty) or object (FbxObject).
Definition at line 1417 of file fbxobject.h.
#include <fbxobject.h>

Public Member Functions |
|
| FbxIteratorDstBase (FbxProperty &pProperty, FbxClassId pClassId) | |
| Constructor. |
|
| FbxIteratorDstBase (FbxObject *pObject, FbxClassId pClassId) | |
| Constructor. |
|
| FbxObject * | GetFirst () |
| Get the first destination object that
connects to the property or object. |
|
| FbxObject * | GetNext () |
| Get next destination object that connects to
the property or object. |
|
| FbxObject * | GetSafeNext () |
| Get next destination object that connects to
the property or object. |
|
| FbxObject * | GetLast () |
| Get the last destination object that
connects to the property or object. |
|
| FbxObject * | GetPrevious () |
| Get previous destination object that
connects to the property or object. |
|
| FbxObject * | GetSafePrevious () |
| Get previous destination object that
connects to the property or object. |
|
Protected Member Functions |
|
| void | ResetToBegin () |
| Reset the iterate index to the beginning.
|
|
| void | ResetToEnd () |
| Reset the iterate index to the end. |
|
Protected Attributes |
|
| FbxProperty | mProperty |
| The property to iterate. |
|
| FbxClassId | mClassId |
| The class ID specifies the type of the
destination objects to be retrieved. |
|
| int | mSize |
| The number of destination objects whose type
is specified by mClassId. |
|
| int | mIndex |
| Iterate index. |
|
| FbxIteratorDstBase | ( | FbxProperty & | pProperty, |
| FbxClassId | pClassId | ||
| ) | [inline] |
Constructor.
| pProperty | Property object. The iterator will iterate destination objects that connect to it. |
| pClassId | The class ID specifies the type of the destination objects. |
Definition at line 1434 of file fbxobject.h.
:
mProperty(pProperty),
mClassId(pClassId),
mSize(0),
mIndex(-1)
{
ResetToBegin();
}
| FbxIteratorDstBase | ( | FbxObject * | pObject, |
| FbxClassId | pClassId | ||
| ) | [inline] |
Constructor.
| pObject | FBX object. The iterator will iterate source objects that connect to it. |
| pClassId | The class ID specifies the type of the source objects. |
Definition at line 1448 of file fbxobject.h.
:
mProperty(pObject->RootProperty),
mClassId(pClassId),
mSize(0),
mIndex(-1)
{
ResetToBegin();
}
| FbxObject* GetFirst | ( | ) | [inline] |
Get the first destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1461 of file fbxobject.h.
{
ResetToBegin();
return GetNext();
}
| FbxObject* GetNext | ( | ) | [inline] |
Get next destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1471 of file fbxobject.h.
| FbxObject* GetSafeNext | ( | ) | [inline] |
Get next destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1482 of file fbxobject.h.
{
mSize = mProperty.GetDstObjectCount(mClassId);
return GetNext();
}
| FbxObject* GetLast | ( | ) | [inline] |
Get the last destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1492 of file fbxobject.h.
{
ResetToEnd();
return GetPrevious();
}
| FbxObject* GetPrevious | ( | ) | [inline] |
Get previous destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1502 of file fbxobject.h.
| FbxObject* GetSafePrevious | ( | ) | [inline] |
Get previous destination object that connects to the property or object.
Reimplemented in FbxIteratorDst< Type >.
Definition at line 1514 of file fbxobject.h.
{
mSize = mProperty.GetDstObjectCount(mClassId);
while (mIndex>mSize) mIndex--;
return GetPrevious();
}
| void ResetToBegin | ( | ) | [inline, protected] |
Reset the iterate index to the beginning.
Definition at line 1527 of file fbxobject.h.
{
mSize = mProperty.GetDstObjectCount(mClassId);
mIndex = -1;
}
| void ResetToEnd | ( | ) | [inline, protected] |
Reset the iterate index to the end.
Definition at line 1536 of file fbxobject.h.
FbxProperty
mProperty [protected] |
The property to iterate.
If iterate an object, this is the root property of the object.
Definition at line 1421 of file fbxobject.h.
FbxClassId
mClassId [protected] |
The class ID specifies the type of the destination objects to be retrieved.
Definition at line 1423 of file fbxobject.h.
int
mSize [protected] |
The number of destination objects whose type is specified by mClassId.
Definition at line 1425 of file fbxobject.h.
int
mIndex [protected] |