kfbxglobalcamerasettings.h

Go to the documentation of this file.
00001 
00004 #ifndef _FBXSDK_GLOBAL_CAMERA_SETTINGS_H_
00005 #define _FBXSDK_GLOBAL_CAMERA_SETTINGS_H_
00006 
00007 /**************************************************************************************
00008 
00009  Copyright © 2001 - 2007 Autodesk, Inc. and/or its licensors.
00010  All Rights Reserved.
00011 
00012  The coded instructions, statements, computer programs, and/or related material
00013  (collectively the "Data") in these files contain unpublished information
00014  proprietary to Autodesk, Inc. and/or its licensors, which is protected by
00015  Canada and United States of America federal copyright law and by international
00016  treaties.
00017 
00018  The Data may not be disclosed or distributed to third parties, in whole or in
00019  part, without the prior written consent of Autodesk, Inc. ("Autodesk").
00020 
00021  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
00022  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
00023  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING
00024  BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE,
00025  NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE.
00026  WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
00027  OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE.
00028 
00029  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
00030  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES
00031  OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER
00032  SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE
00033  OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND),
00034  HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED
00035  FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE,
00036  ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE,
00037  WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS
00038  OR DAMAGE.
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 KFbxGlobalCameraSettingsProperties;
00063 
00064 #define PRODUCER_PERSPECTIVE "Producer Perspective"
00065 #define PRODUCER_TOP "Producer Top"
00066 #define PRODUCER_FRONT "Producer Front"
00067 #define PRODUCER_BACK "Producer Back"
00068 #define PRODUCER_RIGHT "Producer Right"
00069 #define PRODUCER_LEFT "Producer Left"
00070 #define PRODUCER_BOTTOM "Producer Bottom"
00071 #define CAMERA_SWITCHER "Camera Switcher"
00072 
00073 
00077 class KFBX_DLL KFbxGlobalCameraSettings
00078 {
00079 
00080 public:
00081 
00086 
00088     void RestoreDefaultSettings();
00089 
00097     bool SetDefaultCamera(char* pCameraName);
00098 
00102     char* GetDefaultCamera();
00103 
00109     typedef enum 
00110     {
00111         eSTANDARD,
00112         eXRAY,
00113         eMODELS_ONLY
00114     } EViewingMode;
00115 
00119     void SetDefaultViewingMode(EViewingMode pViewingMode);
00120 
00124     EViewingMode GetDefaultViewingMode();
00125 
00127 
00134 
00138     KFbxCamera& GetCameraProducerPerspective(); 
00139 
00143     KFbxCamera& GetCameraProducerTop(); 
00144 
00148     KFbxCamera& GetCameraProducerBottom(); 
00149 
00153     KFbxCamera& GetCameraProducerFront(); 
00154 
00158     KFbxCamera& GetCameraProducerBack(); 
00159 
00163     KFbxCamera& GetCameraProducerRight(); 
00164 
00168     KFbxCamera& GetCameraProducerLeft(); 
00169 
00171 
00173     const KFbxGlobalCameraSettings& operator=(const KFbxGlobalCameraSettings& pGlobalCameraSettings); 
00174 
00180 
00184     KError& GetError();
00185     
00194     typedef enum 
00195     {
00196         eNULL_PARAMETER,
00197         eUNKNOWN_CAMERA_NAME,
00198         eERROR_COUNT
00199     } EError;
00200     
00204     EError GetLastErrorID();
00205 
00209     char* GetLastErrorString();
00210 
00212 
00214 //
00215 //  WARNING!
00216 //
00217 //  Anything beyond these lines may not be documented accurately and is 
00218 //  subject to change without notice.
00219 //
00221 
00222 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00223     bool CopyProducerCamera(KString pCameraName, const KFbxCamera* pCamera);
00224     int  GetProducerCamerasCount() { return 7; }
00225 
00229     KFbxNode* GetCameraProducerPerspectiveNode(); 
00230 
00234     KFbxNode* GetCameraProducerTopNode(); 
00235 
00239     KFbxNode* GetCameraProducerBottomNode(); 
00240 
00244     KFbxNode* GetCameraProducerFrontNode(); 
00245 
00249     KFbxNode* GetCameraProducerBackNode(); 
00250 
00254     KFbxNode* GetCameraProducerRightNode(); 
00255 
00259     KFbxNode* GetCameraProducerLeftNode(); 
00260 
00261 
00262 private:
00263 
00264     KFbxGlobalCameraSettings(KFbxSdkManager& pManager, KFbxScene& pScene);
00265     ~KFbxGlobalCameraSettings();
00266 
00267     KFbxGlobalCameraSettingsProperties* mPH;
00268 
00269     friend class KFbxScene;
00270 
00271 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS 
00272 
00273 };
00274 
00275 #include <fbxfilesdk_nsend.h>
00276 
00277 #endif // #ifndef _FBXSDK_GLOBAL_CAMERA_SETTINGS_H_
00278 
00279