Go to the
documentation of this file.
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
00081 class KFBX_DLL KFbxLodGroup : public KFbxNodeAttribute
00082 {
00083 KFBXOBJECT_DECLARE(KFbxLodGroup,KFbxNodeAttribute);
00084
00085 public:
00087 virtual EAttributeType GetAttributeType() const;
00088
00094 typedef enum {
00095 eUseLOD,
00096 eShow,
00097 eHide
00098 } EDisplayLevel;
00099
00101
00102
00103
00105
00116 KFbxTypedProperty<fbxBool1> MinMaxDistance;
00117
00125 KFbxTypedProperty<fbxDouble1> MinDistance;
00126
00134 KFbxTypedProperty<fbxDouble1> MaxDistance;
00135
00147 KFbxTypedProperty<fbxBool1> WorldSpace;
00148
00149
00151
00152
00153
00155
00160 int GetNumThresholds() const;
00161
00171 bool AddThreshold(fbxDistance pThreshValue);
00172
00178 bool SetThreshold(int pEl, fbxDistance pThreshValue);
00179
00186 bool GetThreshold(int pEl, fbxDistance& pThreshValue) const;
00187
00188
00193 int GetNumDisplayLevels() const;
00194
00210 bool AddDisplayLevel(KFbxLodGroup::EDisplayLevel pValue);
00211
00217 bool SetDisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel pValue);
00218
00225 bool GetDisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel& pValue) const;
00226
00228
00229
00230
00231
00232
00233
00235 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00236 virtual KFbxObject& Copy(const KFbxObject& pObject);
00237
00238 protected:
00239 KFbxLodGroup(KFbxSdkManager& pManager, char const* pName);
00240 virtual bool ConstructProperties(bool pForceSet);
00241
00242 private:
00243 int mNbThresholds;
00244 KFbxProperty mThresholds;
00245 bool Threshold(int pEl, fbxDistance pThreshValue, bool pCreateNew);
00246
00247 int mNbDisplayLevels;
00248 KFbxProperty mDisplayLevels;
00249 bool DisplayLevel(int pEl, KFbxLodGroup::EDisplayLevel pValue, bool pCreateNew);
00250
00251 public:
00252 virtual KStringList GetTypeFlags() const;
00253 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00254 };
00255
00256 typedef KFbxLodGroup* HKFbxLodGroup;
00257 inline EFbxType FbxTypeOf( KFbxLodGroup::EDisplayLevel const &pItem ) { return eENUM; }
00258
00259 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00260
00261 #endif // FBXFILESDK_KFBXPLUGINS_KFBXLODGROUP_H
00262