00001
00004 #ifndef _FBXSDK_GLOBAL_CAMERA_SETTINGS_H_
00005 #define _FBXSDK_GLOBAL_CAMERA_SETTINGS_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
00042 #include <kaydaradef.h>
00043 #ifndef KFBX_DLL
00044 #define KFBX_DLL K_DLLIMPORT
00045 #endif
00046
00047 #include <kaydara.h>
00048
00049 #include <klib/kstring.h>
00050 #include <klib/kerror.h>
00051
00052 #ifndef MB_FBXSDK
00053 #include <kbaselib_nsuse.h>
00054 #endif
00055
00056 #include <fbxfilesdk_nsbegin.h>
00057
00058 class KFbxNode;
00059 class KFbxSdkManager;
00060 class KFbxScene;
00061 class KFbxCamera;
00062 class KFbxCameraSwitcher;
00063 class KFbxGlobalCameraSettingsProperties;
00064
00065 #define PRODUCER_PERSPECTIVE "Producer Perspective"
00066 #define PRODUCER_TOP "Producer Top"
00067 #define PRODUCER_FRONT "Producer Front"
00068 #define PRODUCER_BACK "Producer Back"
00069 #define PRODUCER_RIGHT "Producer Right"
00070 #define PRODUCER_LEFT "Producer Left"
00071 #define PRODUCER_BOTTOM "Producer Bottom"
00072 #define CAMERA_SWITCHER "Camera Switcher"
00073
00074
00078 class KFBX_DLL KFbxGlobalCameraSettings
00079 {
00080
00085 public:
00093 bool SetDefaultCamera(char* pCameraName);
00094
00098 char* GetDefaultCamera();
00099
00101 void RestoreDefaultSettings();
00102
00108 typedef enum
00109 {
00110 eSTANDARD,
00111 eXRAY,
00112 eMODELS_ONLY
00113 } EViewingMode;
00114
00118 void SetDefaultViewingMode(EViewingMode pViewingMode);
00119
00123 EViewingMode GetDefaultViewingMode();
00124
00126
00133
00136 void CreateProducerCameras();
00137
00140 void DestroyProducerCameras();
00141
00145 bool IsProducerCamera(KFbxCamera* pCamera);
00146
00165 KFbxCameraSwitcher* GetCameraSwitcher();
00166
00170 void SetCameraSwitcher(KFbxCameraSwitcher* pSwitcher);
00171
00175 KFbxCamera* GetCameraProducerPerspective();
00176
00180 KFbxCamera* GetCameraProducerTop();
00181
00185 KFbxCamera* GetCameraProducerBottom();
00186
00190 KFbxCamera* GetCameraProducerFront();
00191
00195 KFbxCamera* GetCameraProducerBack();
00196
00200 KFbxCamera* GetCameraProducerRight();
00201
00205 KFbxCamera* GetCameraProducerLeft();
00206
00208
00210 const KFbxGlobalCameraSettings& operator=(const KFbxGlobalCameraSettings& pGlobalCameraSettings);
00211
00217
00221 KError& GetError();
00222
00228 typedef enum
00229 {
00230 eNULL_PARAMETER,
00231 eUNKNOWN_CAMERA_NAME,
00232 eERROR_COUNT
00233 } EError;
00234
00238 EError GetLastErrorID() const;
00239
00243 const char* GetLastErrorString() const;
00244
00246
00248
00249
00250
00251
00252
00253
00255
00256 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00257 bool CopyProducerCamera(KString pCameraName, const KFbxCamera* pCamera);
00258 int GetProducerCamerasCount() { return 7; }
00259 private:
00260 KFbxGlobalCameraSettings(KFbxSdkManager& pManager, KFbxScene& pScene);
00261 ~KFbxGlobalCameraSettings();
00262
00263 KFbxGlobalCameraSettingsProperties* mPH;
00264
00265 friend class KFbxScene;
00266
00267 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00268
00269 };
00270
00271 #include <fbxfilesdk_nsend.h>
00272
00273 #endif // #ifndef _FBXSDK_GLOBAL_CAMERA_SETTINGS_H_
00274
00275