KFbxCollection
#include<kfbxcollection.h>

Inheritance diagram for KFbxCollection:

Inheritance graph
[legend]

List of all members.

Detailed Description

This class contains objects.

This class also provides access to global settings and take information.

Definition at line58of filekfbxcollection.h.


Collection member management

virtual void Clear()
 Delete all contained objects.
void AddMember(KFbxObject*pMember)
 Add a member.
void RemoveMember(KFbxObject*pMember)
 Remove a member.
template<class T>
T * FindMember(T const *pfbxType, const char *pName)
 Find a member.
int GetMemberCount() const
 Return the number of objects in the collection.
template<class T>
int GetMemberCount(T const *pFBX_TYPE) const
 Return the number of objects of class T in the collection.
int GetMemberCount(KFbxCriteriapCriteria) const
 Return the number of objects satisfying given criteria in the collection.
KFbxObjectGetMember(int pIndex=0) const
 Return the index'th member of the collection.
template<class T>
T * GetMember(T const *pFBX_TYPE, int pIndex=0) const
 Return the index'th member of class T in the collection.
KFbxObjectGetMember(KFbxCriteriapCriteria, int pIndex=0) const
 Return the index'th member of the collection which satisfies given criteria.
virtual bool IsMember(KFbxObject*pMember) const
 Is an object part of the collection.

Selection managent

virtual void SetSelectedAll(bool pSelection)
 Select/Unselect all contained objects.
virtual void SetSelected(KFbxObject*pObject, bool pSelection)
 Select/Unselect objects.
virtual bool GetSelected(KFbxObject*pObject)
 Get Select/Unselect .

Member Function Documentation

virtual void Clear( ) [virtual]

Delete all contained objects.

Reimplemented inKFbxDocument, andKFbxScene.

void AddMember(KFbxObjectpMember ) [inline]

Add a member.

Parameters:
pMember Object to be added.

Definition at line72of filekfbxcollection.h.

Referenced byKFbxDocument::AddRootMember().

void RemoveMember(KFbxObjectpMember ) [inline]

Remove a member.

Parameters:
pMember Object to be removed.

Definition at line76of filekfbxcollection.h.

Referenced byKFbxDocument::RootRootRemoveMember().

T* FindMember(T const * pfbxType,
const char * pName 
)[inline]

Find a member.

Parameters:
pfbxType Member type.
pName Member name.

Definition at line81of filekfbxcollection.h.

int GetMemberCount( ) const[inline]

Return the number of objects in the collection.

Returns:
The number of objects in the collection.

Definition at line85of filekfbxcollection.h.

Referenced byKFbxLibrary::InstantiateMember().

int GetMemberCount(T const * pFBX_TYPE ) const[inline]

Return the number of objects of class T in the collection.

Parameters:
pFBX_TYPE Member type.
Returns:
The number of objects of class T in the collection.

Definition at line90of filekfbxcollection.h.

int GetMemberCount(KFbxCriteria pCriteria ) const

Return the number of objects satisfying given criteria in the collection.

Parameters:
pCriteria The given criteria
Returns:
The number of objects satisfying given criteria in the collection.

KFbxObject* GetMember(int pIndex=0 ) const[inline]

Return the index'th member of the collection.

Parameters:
pIndex The member index.
Returns:
The index'th member of the collection.

Definition at line101of filekfbxcollection.h.

Referenced byKFbxLibrary::InstantiateMember().

T* GetMember(T const * pFBX_TYPE,
int pIndex=0 
)const[inline]

Return the index'th member of class T in the collection.

Parameters:
pFBX_TYPE Member type information.
pIndex The member index.
Returns:
The index'th member of the collection.

Definition at line107of filekfbxcollection.h.

KFbxObject* GetMember(KFbxCriteria pCriteria,
int pIndex=0 
)const

Return the index'th member of the collection which satisfies given criteria.

Parameters:
pCriteria The given criteria.
pIndex The member index.
Returns:
The index'th member of the collection.

virtual bool IsMember(KFbxObjectpMember ) const[virtual]

Is an object part of the collection.

Parameters:
pMember Whether pMember is part of the collection.
Returns:
Trueif is,falseotherwise.

virtual void SetSelectedAll(bool pSelection ) [virtual]

Select/Unselect all contained objects.

Parameters:
pSelection Iftrue, all object are selected, otherwise all objects are unselected.

virtual void SetSelected(KFbxObjectpObject,
bool pSelection 
)[virtual]

Select/Unselect objects.

Parameters:
pObject 
pSelection Iftrue, pObject are selected, otherwise pObject are unselected.

virtual bool GetSelected(KFbxObjectpObject ) [virtual]

Get Select/Unselect .

Parameters:
pObject Get whether pObject is selected or unselected.