00001
00004 #ifndef FBXFILESDK_KFBXPLUGINS_KFBXLODGROUP_H
00005 #define FBXFILESDK_KFBXPLUGINS_KFBXLODGROUP_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 #include <fbxfilesdk/kfbxplugins/kfbxnodeattribute.h>
00044
00045 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00046
00047 class KFbxSdkManager;
00048
00080 class KFBX_DLL KFbxLodGroup : public KFbxNodeAttribute
00081 {
00082 KFBXOBJECT_DECLARE(KFbxLodGroup,KFbxNodeAttribute);
00083
00084 public:
00086 virtual EAttributeType GetAttributeType() const;
00087
00093 typedef enum {
00094 eUseLOD,
00095 eShow,
00096 eHide
00097 } EDisplayLevel;
00098
00100
00101
00102
00104
00115 KFbxTypedProperty<fbxBool1> MinMaxDistance;
00116
00124 KFbxTypedProperty<fbxDouble1> MinDistance;
00125
00133 KFbxTypedProperty<fbxDouble1> MaxDistance;
00134
00146 KFbxTypedProperty<fbxBool1> WorldSpace;
00147
00148
00150
00151
00152
00154
00159 int GetNumThresholds() const;
00160
00170 bool AddThreshold(fbxDistance pThreshValue);
00171
00177 bool SetThreshold(int pEl, fbxDistance pThreshValue);
00178
00185 bool GetThreshold(int pEl, fbxDistance& pThreshValue) const;
00186
00187
00192 int GetNumDisplayLevels() const;
00193
00209 bool AddDisplayLevel(KFbxLodGroup::EDisplayLevel pValue);
00210
00216 bool SetDisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel pValue);
00217
00224 bool GetDisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel& pValue) const;
00225
00227
00228
00229
00230
00231
00232
00234 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00235
00236 virtual KFbxObject& Copy(const KFbxObject& pObject);
00237 virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType = eDEEP_CLONE) const;
00238
00239 protected:
00240 KFbxLodGroup(KFbxSdkManager& pManager, char const* pName);
00241 virtual bool ConstructProperties(bool pForceSet);
00242
00243 private:
00244 int mNbThresholds;
00245 KFbxProperty mThresholds;
00246 bool Threshold(int pEl, fbxDistance pThreshValue, bool pCreateNew);
00247
00248 int mNbDisplayLevels;
00249 KFbxProperty mDisplayLevels;
00250 bool DisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel pValue, bool pCreateNew);
00251
00252 public:
00253 virtual KString GetTypeName() const;
00254 virtual KStringList GetTypeFlags() const;
00255 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00256 };
00257
00258 typedef KFbxLodGroup* HKFbxLodGroup;
00259 inline EFbxType FbxTypeOf( KFbxLodGroup::EDisplayLevel const &pItem ) { return eENUM; }
00260
00261 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00262
00263 #endif // FBXFILESDK_KFBXPLUGINS_KFBXLODGROUP_H
00264