FbxCollection Class Reference
 
 
 
FbxCollection Class Reference

This reference page is linked to from the following overview topics: FBX SDK Object Model, FBX Objects, List of Python Fbx classes, Connections.


#include <fbxcollection.h>


Class Description

A FbxObject derived container for FbxObject.

Definition at line 28 of file fbxcollection.h.

Inheritance diagram for FbxCollection:
FbxObject FbxEmitter FbxAnimLayer FbxAnimStack FbxCollectionExclusive FbxDocument FbxSelectionSet FbxDisplayLayer FbxLibrary FbxScene

List of all members.

Collection member management

virtual void  Clear ()
  Deletes all objects in the container.
virtual bool  AddMember (FbxObject *pMember)
  Adds a member.
virtual bool  RemoveMember (FbxObject *pMember)
  Removes a member.
int  GetMemberCount () const
  Returns the number of objects contained within the collection.
FbxObject GetMember (int pIndex=0) const
  Returns the member of the collection at the given index.
virtual bool  IsMember (const FbxObject *pMember) const
  Judges whether an object is a part of the collection.

Templated member management

template<class T >
FBX_DEPRECATED int  GetMemberCount (const T *) const
  Returns the number of class T objects contained within the collection.
template<class T >
int  GetMemberCount () const
  Returns the number of class T objects contained within the collection.
template<class T >
FBX_DEPRECATED T *  GetMember (const T *, int pIndex=0) const
  Returns the member of class T at the given index in the collection.
template<class T >
T *  GetMember (int pIndex=0) const
  Returns the member of class T at the given index in the collection.
template<class T >
FBX_DEPRECATED T *  FindMember (const T *, const char *pName) const
  Searches for a member of class T.
template<class T >
T *  FindMember (const char *pName) const
  Searches for a member of class T.

Criteria based member management

int  GetMemberCount (const FbxCriteria &pCriteria) const
  Returns the number of class T objects contained within the collection.
FbxObject GetMember (const FbxCriteria &pCriteria, int pIndex=0) const
  Returns the member of class T at the given index in the collection.
FbxObject FindMember (const FbxCriteria &pCriteria, const char *pName) const
  Searches for a member of class T.

Selection management

virtual void  SetSelectedAll (bool pSelection)
  Selects/Deselects all the contained objects.
virtual void  SetSelected (FbxObject *pObject, bool pSelection)
  Selects/Deselects an object.
virtual bool  GetSelected (FbxObject *pObject)
  Returns whether the specified object is selected or not.

Member Function Documentation

virtual void Clear ( ) [virtual]

Deletes all objects in the container.

Reimplemented in FbxDocument, and FbxScene.

virtual bool RemoveMember ( FbxObject pMember ) [inline, virtual]

Removes a member.

Parameters:
pMember Object to be removed.

Definition at line 48 of file fbxcollection.h.

{ return DisconnectSrcObject(pMember); }
int GetMemberCount ( ) const [inline]

Returns the number of objects contained within the collection.

Returns:
The number of objects the collection contains.
Examples:
ExportDocument/main.cxx, and ImportScene/DisplayAnimation.cxx.

Definition at line 53 of file fbxcollection.h.

{ return GetSrcObjectCount(); }
FbxObject* GetMember ( int  pIndex = 0 ) const [inline]

Returns the member of the collection at the given index.

Parameters:
pIndex The given index.
Returns:
The member of the collection at the given index.
Examples:
Animation/main.cxx, ImportScene/DisplayAnimation.cxx, and ViewScene/SceneContext.cxx.

Definition at line 59 of file fbxcollection.h.

{ return GetSrcObject(pIndex); }
virtual bool IsMember ( const FbxObject pMember ) const [virtual]

Judges whether an object is a part of the collection.

Parameters:
pMember The member to be judged.
Returns:
True if it is a member of the collection, returns false if it is not a member.
FBX_DEPRECATED int GetMemberCount ( const T *  ) const [inline]

Returns the number of class T objects contained within the collection.

(Deprecated, please use GetMemberCount<Type>() instead.)

Returns:
The number of objects of class T the collection contains.

Definition at line 75 of file fbxcollection.h.

{ return GetSrcObjectCount<T>(); }
int GetMemberCount ( ) const [inline]

Returns the number of class T objects contained within the collection.

Returns:
The number of objects of class T the collection contains.

Definition at line 79 of file fbxcollection.h.

{ return GetSrcObjectCount<T>(); }
FBX_DEPRECATED T* GetMember ( const T *  ,
int  pIndex = 0 
) const [inline]

Returns the member of class T at the given index in the collection.

(Deprecated, please use GetMember<Type>() instead.)

Parameters:
pIndex The given index.
Returns:
The member of class T at the given index.

Definition at line 85 of file fbxcollection.h.

{ return GetSrcObject<T>(pIndex); }
T* GetMember ( int  pIndex = 0 ) const [inline]

Returns the member of class T at the given index in the collection.

Parameters:
pIndex The given index.
Returns:
The member of class T at the given index.

Definition at line 90 of file fbxcollection.h.

{ return GetSrcObject<T>(pIndex); }
FBX_DEPRECATED T* FindMember ( const T *  ,
const char *  pName 
) const [inline]

Searches for a member of class T.

(Deprecated, please use FindMember<Type>() instead.)

Parameters:
pName Member name.
Examples:
ViewScene/SceneContext.cxx.

Definition at line 95 of file fbxcollection.h.

{ return FindSrcObject<T>(pName); }
T* FindMember ( const char *  pName ) const [inline]

Searches for a member of class T.

Parameters:
pName Member name.

Definition at line 99 of file fbxcollection.h.

{ return FindSrcObject<T>(pName); }
int GetMemberCount ( const FbxCriteria pCriteria ) const [inline]

Returns the number of class T objects contained within the collection.

Returns:
The number of objects of class T the collection contains.

Definition at line 109 of file fbxcollection.h.

{ return GetSrcObjectCount(pCriteria); }
FbxObject* GetMember ( const FbxCriteria pCriteria,
int  pIndex = 0 
) const [inline]

Returns the member of class T at the given index in the collection.

Parameters:
pIndex The given index.
Returns:
The member of class T at the given index.

Definition at line 115 of file fbxcollection.h.

{ return GetSrcObject(pCriteria, pIndex); }
FbxObject* FindMember ( const FbxCriteria pCriteria,
const char *  pName 
) const [inline]

Searches for a member of class T.

Parameters:
pName Member name.

Definition at line 120 of file fbxcollection.h.

{ return FindSrcObject(pCriteria, pName); }
virtual void SetSelectedAll ( bool  pSelection ) [virtual]

Selects/Deselects all the contained objects.

Parameters:
pSelection If true, all objects are selected, if false, all objects are deselected.
virtual void SetSelected ( FbxObject pObject,
bool  pSelection 
) [virtual]

Selects/Deselects an object.

Parameters:
pObject The object to be selected or deselected.
pSelection If true, pObject is selected, if false, pObject is deselected.
virtual bool GetSelected ( FbxObject pObject ) [virtual]

Returns whether the specified object is selected or not.

Parameters:
pObject The specified object.
Returns:
Whether pObject is selected or not.

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