FbxIteratorDstBase Class Reference

#include <fbxobject.h>

Class Description

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

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

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

1357  :
1358  mProperty(pProperty),
1359  mClassId(pClassId),
1360  mSize(0),
1361  mIndex(-1)
1362  {
1363  ResetToBegin();
1364  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1448
int mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1347
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
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 1371 of file fbxobject.h.

1371  :
1372  mProperty(pObject->RootProperty),
1373  mClassId(pClassId),
1374  mSize(0),
1375  mIndex(-1)
1376  {
1377  ResetToBegin();
1378  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1448
FbxProperty RootProperty
The root property that holds all children property for this object.
Definition: fbxobject.h:1033
int mSize
The number of destination objects whose type is specified by mClassId.
Definition: fbxobject.h:1347
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345

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

1385  {
1386  ResetToBegin();
1387  return GetNext();
1388  }
void ResetToBegin()
Reset the iterate index to the beginning.
Definition: fbxobject.h:1448
FbxObject * GetNext()
Get next destination object that connects to the property or object.
Definition: fbxobject.h:1394
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 1394 of file fbxobject.h.

1395  {
1396  mIndex++;
1398  }
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:210
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:1347
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
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 1405 of file fbxobject.h.

1406  {
1408  return GetNext();
1409  }
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:1347
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxObject * GetNext()
Get next destination object that connects to the property or object.
Definition: fbxobject.h:1394
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
FbxObject* GetLast ( )
inline

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

Returns
The last destination object.

Definition at line 1415 of file fbxobject.h.

1416  {
1417  ResetToEnd();
1418  return GetPrevious();
1419  }
void ResetToEnd()
Reset the iterate index to the end.
Definition: fbxobject.h:1457
FbxObject * GetPrevious()
Get previous destination object that connects to the property or object.
Definition: fbxobject.h:1425
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 1425 of file fbxobject.h.

1426  {
1427  mIndex--;
1429  }
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:210
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:1347
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
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 1437 of file fbxobject.h.

1438  {
1440  while (mIndex>mSize) mIndex--;
1441  return GetPrevious();
1442  }
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:1347
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxObject * GetPrevious()
Get previous destination object that connects to the property or object.
Definition: fbxobject.h:1425
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
void ResetToBegin ( )
inlineprotected

Reset the iterate index to the beginning.

Definition at line 1448 of file fbxobject.h.

1449  {
1451  mIndex = -1;
1452  }
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:1347
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345
void ResetToEnd ( )
inlineprotected

Reset the iterate index to the end.

Definition at line 1457 of file fbxobject.h.

1458  {
1460  mIndex = mSize;
1461  }
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:1347
int GetDstObjectCount() const
Returns the number of destination objects with which this property connects.
int mIndex
Iterate index.
Definition: fbxobject.h:1349
FbxProperty mProperty
The property to iterate.
Definition: fbxobject.h:1343
FbxClassId mClassId
The class ID specifies the type of the destination objects to be retrieved.
Definition: fbxobject.h:1345

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

FbxClassId mClassId
protected

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

Definition at line 1345 of file fbxobject.h.

int mSize
protected

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

Definition at line 1347 of file fbxobject.h.

int mIndex
protected

Iterate index.

Definition at line 1349 of file fbxobject.h.


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