Go to the
documentation of this file.
00001
00004 #ifndef FBXFILESDK_FBXCORE_FBXCOLLECTION_KFBXCOLLECTION_H
00005 #define FBXFILESDK_FBXCORE_FBXCOLLECTION_KFBXCOLLECTION_H
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041 #include <fbxfilesdk/fbxfilesdk_def.h>
00042
00043
00044 #include <fbxfilesdk/kfbxplugins/kfbxobject.h>
00045 #include <fbxfilesdk/kfbxplugins/kfbxsdkmanager.h>
00046
00047 #include <fbxfilesdk/kfbxevents/kfbxevents.h>
00048
00049 #include <fbxfilesdk/components/kbaselib/klib/kerror.h>
00050
00051 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00052
00053 class KFbxCriteria;
00054
00059 class KFBX_DLL KFbxCollection : public KFbxObject
00060 {
00061 KFBXOBJECT_DECLARE(KFbxCollection, KFbxObject);
00062
00063 public:
00068
00069 virtual void Clear();
00070
00074 virtual bool AddMember(KFbxObject *pMember) { return ConnectSrcObject(pMember); }
00075
00079 virtual bool RemoveMember(KFbxObject *pMember) { return DisconnectSrcObject(pMember); }
00080
00085 template <class T> inline T * FindMember(T const *pfbxType, const char *pName) { return FindSrcObject(pfbxType, pName); }
00086
00090 inline int GetMemberCount () const { return GetSrcObjectCount(); }
00091
00096 template < class T > inline int GetMemberCount (T const *pFBX_TYPE) const { return GetSrcObjectCount(T::ClassId); }
00097
00102 int GetMemberCount( KFbxCriteria pCriteria ) const;
00103
00108 inline KFbxObject* GetMember (int pIndex=0) const { return GetSrcObject(pIndex); }
00109
00115 template < class T > inline T* GetMember (T const *pFBX_TYPE, int pIndex=0) const { return (T *)GetSrcObject(T::ClassId,pIndex); }
00116
00122 KFbxObject* GetMember (KFbxCriteria pCriteria, int pIndex=0) const;
00123
00128 virtual bool IsMember(const KFbxObject *pMember) const;
00130
00138 virtual void SetSelectedAll(bool pSelection);
00139
00144 virtual void SetSelected(KFbxObject* pObject,bool pSelection);
00145
00150 virtual bool GetSelected(KFbxObject* pObject);
00152
00154
00155
00156
00158 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00159 protected:
00160 KFbxCollection(KFbxSdkManager& pManager, char const* pName);
00161 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00162 };
00163
00164 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00165
00166 #endif // FBXFILESDK_FBXCORE_FBXCOLLECTION_KFBXCOLLECTION_H
00167