FbxIteratorDstBase Class Reference
 
 
 
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 1460 of file fbxobject.h.

Inheritance diagram for FbxIteratorDstBase:
FbxIteratorDst< Type >

List of all members.

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.

Constructor & Destructor Documentation

FbxIteratorDstBase ( FbxProperty pProperty,
FbxClassId  pClassId 
) [inline]

Constructor.

Parameters:
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 1478 of file fbxobject.h.

    {
        ResetToBegin();
    }
    
FbxIteratorDstBase ( FbxObject pObject,
FbxClassId  pClassId 
) [inline]

Constructor.

Parameters:
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 1492 of file fbxobject.h.

    {
        ResetToBegin();
    }

Member Function Documentation

FbxObject* GetFirst ( ) [inline]

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

Returns:
The first destination object.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1505 of file fbxobject.h.

    {
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.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1515 of file fbxobject.h.

                                                                                                                 : NULL;
    }
    
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.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1526 of file fbxobject.h.

    {
FbxObject* GetLast ( ) [inline]

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

Returns:
The last destination object.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1536 of file fbxobject.h.

    {
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.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1546 of file fbxobject.h.

                                                                                                                 : NULL;
    }
    
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.

Reimplemented in FbxIteratorDst< Type >.

Definition at line 1558 of file fbxobject.h.

         :
void ResetToBegin ( ) [inline, protected]

Reset the iterate index to the beginning.

Definition at line 1569 of file fbxobject.h.

    {
void ResetToEnd ( ) [inline, protected]

Reset the iterate index to the end.

Definition at line 1578 of file fbxobject.h.

                                          : protected FbxIteratorDstBase

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

FbxClassId mClassId [protected]

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

Definition at line 1466 of file fbxobject.h.

int mSize [protected]

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

Definition at line 1468 of file fbxobject.h.

int mIndex [protected]

Iterate index.

Definition at line 1470 of file fbxobject.h.


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