FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fbxglobalcamerasettings.h
Go to the documentation of this file.
1 /****************************************************************************************
2 
3  Copyright (C) 2015 Autodesk, Inc.
4  All rights reserved.
5 
6  Use of this software is subject to the terms of the Autodesk license agreement
7  provided at the time of installation or download, or which otherwise accompanies
8  this software in either electronic or hard copy form.
9 
10 ****************************************************************************************/
11 
13 #ifndef _FBXSDK_FILEIO_GLOBAL_CAMERA_SETTINGS_H_
14 #define _FBXSDK_FILEIO_GLOBAL_CAMERA_SETTINGS_H_
15 
16 #include <fbxsdk/fbxsdk_def.h>
17 
19 
20 #include <fbxsdk/fbxsdk_nsbegin.h>
21 
22 class FbxStatus;
23 class FbxManager;
24 class FbxScene;
25 class FbxCamera;
26 class FbxCameraSwitcher;
27 
28 #define FBXSDK_CAMERA_PERSPECTIVE "Producer Perspective"
29 #define FBXSDK_CAMERA_TOP "Producer Top"
30 #define FBXSDK_CAMERA_FRONT "Producer Front"
31 #define FBXSDK_CAMERA_BACK "Producer Back"
32 #define FBXSDK_CAMERA_RIGHT "Producer Right"
33 #define FBXSDK_CAMERA_LEFT "Producer Left"
34 #define FBXSDK_CAMERA_BOTTOM "Producer Bottom"
35 #define FBXSDK_CAMERA_SWITCHER "Camera Switcher"
36 
44 {
46 
47 public:
52  {
53  eStandard, //<! Standard view mode.
54  eXRay, //<! X ray view mode.
55  eModelsOnly //<! Model only view mode.
56  };
57 
64  bool SetDefaultCamera(const char* pCameraName, FbxStatus* pStatus=NULL);
65 
68  const char* GetDefaultCamera() const;
69 
71  void RestoreDefaultSettings();
72 
75  void SetDefaultViewingMode(EViewingMode pViewingMode);
76 
79  EViewingMode GetDefaultViewingMode() const;
81 
87  void CreateProducerCameras();
88 
90  void DestroyProducerCameras();
91 
95  bool IsProducerCamera(FbxCamera* pCamera) const;
96 
99  FbxCamera* GetCameraProducerPerspective() const;
100 
103  FbxCamera* GetCameraProducerFront() const;
104 
107  FbxCamera* GetCameraProducerBack() const;
108 
111  FbxCamera* GetCameraProducerLeft() const;
112 
115  FbxCamera* GetCameraProducerRight() const;
116 
119  FbxCamera* GetCameraProducerTop() const;
120 
123  FbxCamera* GetCameraProducerBottom() const;
124 
131  FbxCameraSwitcher* GetCameraSwitcher() const;
132 
135  void SetCameraSwitcher(FbxCameraSwitcher* pSwitcher);
137 
140  const FbxGlobalCameraSettings& operator=(const FbxGlobalCameraSettings& pGlobalCameraSettings);
141 
142 /*****************************************************************************************************************************
143 ** WARNING! Anything beyond these lines is for internal use, may not be documented and is subject to change without notice! **
144 *****************************************************************************************************************************/
145 #ifndef DOXYGEN_SHOULD_SKIP_THIS
146  bool CopyProducerCamera(const char* pCameraName, const FbxCamera* pCamera) const;
147 
148 private:
149  FbxGlobalCameraSettings(FbxManager& pManager, FbxScene& pScene);
151 
152  FbxScene* mScene;
153  FbxString mDefaultCamera;
154  EViewingMode mDefaultViewingMode;
155  FbxCamera* mCameraPerspective;
156  FbxCamera* mCameraFront;
157  FbxCamera* mCameraBack;
158  FbxCamera* mCameraLeft;
159  FbxCamera* mCameraRight;
160  FbxCamera* mCameraTop;
161  FbxCamera* mCameraBottom;
162  FbxCameraSwitcher* mCameraSwitcher;
163 #endif /* !DOXYGEN_SHOULD_SKIP_THIS *****************************************************************************************/
164 };
165 
166 #include <fbxsdk/fbxsdk_nsend.h>
167 
168 #endif /* _FBXSDK_FILEIO_GLOBAL_CAMERA_SETTINGS_H_ */
FBX SDK environment definition.
#define FBXSDK_FRIEND_NEW()
Definition: fbxnew.h:397
SDK object manager.
Definition: fbxmanager.h:56
#define NULL
Definition: fbxarch.h:210
Utility class to manipulate strings.
Definition: fbxstring.h:66
This node attribute contains methods for accessing the properties of a camera switcher.
This class facilitates the testing/reporting of errors.
Definition: fbxstatus.h:26
This class contains the description of a 3D scene.
Definition: fbxscene.h:61
This node attribute contains methods for accessing the properties of a camera.
Definition: fbxcamera.h:34
#define FBXSDK_DLL
Definition: fbxarch.h:173
This class contains the global camera settings.