FbxCollection Class Reference

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


Search for all occurrences

Detailed Description

A FbxObject derived container for FbxObject.

Definition at line 28 of file fbxcollection.h.

#include <fbxcollection.h>

Inheritance diagram for FbxCollection:
Inheritance graph
[legend]

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.
FbxObjectGetMember (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.
FbxObjectGetMember (const FbxCriteria &pCriteria, int pIndex=0) const
 Returns the member of class T at the given index in the collection.
FbxObjectFindMember (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 AddMember ( FbxObject pMember) [inline, virtual]

Adds a member.

Parameters:
pMemberObject to be added.

Reimplemented in FbxCollectionExclusive.

Definition at line 43 of file fbxcollection.h.

{ return ConnectSrcObject(pMember); }
virtual bool RemoveMember ( FbxObject pMember) [inline, virtual]

Removes a member.

Parameters:
pMemberObject 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.

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:
pIndexThe given index.
Returns:
The member of the collection at the given index.

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:
pMemberThe 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:
pIndexThe 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:
pIndexThe 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:
pNameMember name.

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:
pNameMember 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:
pIndexThe 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:
pNameMember 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:
pSelectionIf true, all objects are selected, if false, all objects are deselected.
virtual void SetSelected ( FbxObject pObject,
bool  pSelection 
) [virtual]

Selects/Deselects an object.

Parameters:
pObjectThe object to be selected or deselected.
pSelectionIf 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:
pObjectThe specified object.
Returns:
Whether pObject is selected or not.

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

FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection
FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection FbxCollection