#include <kfbxcollection.h>
Definition at line 59 of file kfbxcollection.h.
Collection member management |
|
virtual void | Clear () |
Deletes all objects in the container.
|
|
virtual bool | AddMember (KFbxObject *pMember) |
Adds a member. |
|
virtual bool | RemoveMember (KFbxObject *pMember) |
Removes a member. |
|
template<class T> | |
T * | FindMember (T const *pfbxType, const char *pName) |
Searches for a member of class T. |
|
int | GetMemberCount () const |
Returns the number of objects contained
within the collection. |
|
template<class T> | |
int | GetMemberCount (T const *pFBX_TYPE) const |
Returns the number of class T objects
contained within the collection. |
|
int | GetMemberCount (KFbxCriteria pCriteria) const |
Returns the number of objects in the
collection that satisfy the given criteria. |
|
KFbxObject * | GetMember (int pIndex=0) const |
Returns the member of the collection at the
given index. |
|
template<class T> | |
T * | GetMember (T const *pFBX_TYPE, int pIndex=0) const |
Returns the member of class T at the given
index in the collection. |
|
KFbxObject * | GetMember (KFbxCriteria pCriteria, int pIndex=0) const |
Returns the member that satisfies the given
criteria at the given index in the collection. |
|
virtual bool | IsMember (const KFbxObject *pMember) const |
Judges whether an object is a part of the
collection. |
|
Selection management |
|
virtual void | SetSelectedAll (bool pSelection) |
Selects/Deselects all the contained objects.
|
|
virtual void | SetSelected (KFbxObject *pObject, bool pSelection) |
Selects/Deselects an object. |
|
virtual bool | GetSelected (KFbxObject *pObject) |
Returns whether the specified object is
selected or not. |
virtual void Clear | ( | ) | [virtual] |
Deletes all objects in the container.
Reimplemented in KFbxDocument, and KFbxScene.
virtual bool AddMember | ( | KFbxObject * | pMember | ) | [inline, virtual] |
Adds a member.
pMember | Object to be added. |
Reimplemented in KFbxCollectionExclusive.
Definition at line 74 of file kfbxcollection.h.
References KFbxObject::ConnectSrcObject().
Referenced by KFbxDocument::AddRootMember().
virtual bool RemoveMember | ( | KFbxObject * | pMember | ) | [inline, virtual] |
Removes a member.
pMember | Object to be removed. |
Definition at line 79 of file kfbxcollection.h.
References KFbxObject::DisconnectSrcObject().
Referenced by KFbxDocument::RootRootRemoveMember().
T* FindMember | ( | T const * | pfbxType, | |
const char * | pName | |||
) | [inline] |
Searches for a member of class T.
pfbxType | Member type. | |
pName | Member name. |
Definition at line 85 of file kfbxcollection.h.
References KFbxObject::FindSrcObject().
int GetMemberCount | ( | ) | const [inline] |
Returns the number of objects contained within the collection.
Definition at line 90 of file kfbxcollection.h.
References KFbxObject::GetSrcObjectCount().
Referenced by KFbxLibrary::InstantiateMember().
int GetMemberCount | ( | T const * | pFBX_TYPE | ) | const [inline] |
Returns the number of class T objects contained within the collection.
pFBX_TYPE | Member type. |
Definition at line 96 of file kfbxcollection.h.
References KFbxObject::GetSrcObjectCount().
int GetMemberCount | ( | KFbxCriteria | pCriteria | ) | const |
Returns the number of objects in the collection that satisfy the given criteria.
pCriteria | The given criteria |
KFbxObject* GetMember | ( | int | pIndex = 0 |
) | const [inline] |
Returns the member of the collection at the given index.
pIndex | The given index. |
Definition at line 108 of file kfbxcollection.h.
References KFbxObject::GetSrcObject().
Referenced by KFbxLibrary::InstantiateMember().
T* GetMember | ( | T const * | pFBX_TYPE, | |
int | pIndex = 0 |
|||
) | const [inline] |
Returns the member of class T at the given index in the collection.
pFBX_TYPE | Member type. | |
pIndex | The given index. |
Definition at line 115 of file kfbxcollection.h.
References KFbxObject::GetSrcObject().
KFbxObject* GetMember | ( | KFbxCriteria | pCriteria, | |
int | pIndex = 0 |
|||
) | const |
Returns the member that satisfies the given criteria at the given index in the collection.
pCriteria | The given criteria. | |
pIndex | The given index. |
virtual bool IsMember | ( | const KFbxObject * | pMember | ) | const [virtual] |
Judges whether an object is a part of the collection.
pMember | The member to be judged. |
True
if it is a member of the collection, returns
false
if it is not a member.virtual void SetSelectedAll | ( | bool | pSelection | ) | [virtual] |
Selects/Deselects all the contained objects.
pSelection | If true , all objects are selected, if
false , all objects are deselected. |
virtual void SetSelected | ( | KFbxObject * | pObject, | |
bool | pSelection | |||
) | [virtual] |
Selects/Deselects an object.
pObject | The object to be selected or deselected. | |
pSelection | If true , pObject is selected, if
false , pObject is deselected. |
virtual bool GetSelected | ( | KFbxObject * | pObject | ) | [virtual] |
Returns whether the specified object is selected or not.
pObject | The specified object. |