00001
00003 #ifndef FBXFILESDK_KFBXPLUGINS_KFBXMANIPULATORS_H
00004 #define FBXFILESDK_KFBXPLUGINS_KFBXMANIPULATORS_H
00005
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/components/kbaselib/kaydaradef_h.h>
00042 #include <fbxfilesdk/components/kbaselib/kaydara.h>
00043
00044 #include <fbxfilesdk/kfbxplugins/kfbxobject.h>
00045 #include <fbxfilesdk/kfbxplugins/kfbxcamera.h>
00046 #include <fbxfilesdk/kfbxmath/kfbxvector2.h>
00047 #include <fbxfilesdk/kfbxmath/kfbxvector4.h>
00048
00049 #include <fbxfilesdk/fbxfilesdk_nsbegin.h>
00050
00051 class KFbxCamManip_state;
00052
00056 class KFBX_DLL KFbxCameraManipulator : public KFbxObject
00057 {
00058 KFBXOBJECT_DECLARE(KFbxCameraManipulator, KFbxObject);
00059
00060 public:
00061 enum eAlignment {eNoAlignment, eCameraToLookAt, eLookAtToCamera};
00062 enum eAction {eNoAction, eOrbit, eDolly, ePan};
00063
00067 void Initialize(const KFbxCamera& pCamera, eAlignment pCamAlign);
00068
00074 bool ManipBegin(eAction pAction, int pMouseX, int pMouseY);
00075
00079 bool ManipNotify(int pMouseX, int pMouseY);
00080
00082 void ManipEnd();
00083
00085 eAction GetCurrentAction();
00086
00089 void FrameAll();
00090
00093 void FrameSelected();
00094
00096
00097
00098
00099
00100
00101
00103
00104 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00105
00106 public:
00107 virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00108
00110 KFbxCameraManipulator& operator=(KFbxCameraManipulator const& pCamManip);
00111
00112 private:
00113 KFbxCameraManipulator(KFbxSdkManager& pManager, char const* pName);
00114 ~KFbxCameraManipulator();
00115
00116 KFbxCamManip_state* mState;
00117 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS
00118 };
00119
00120 #include <fbxfilesdk/fbxfilesdk_nsend.h>
00121
00122 #endif // FBXFILESDK_KFBXPLUGINS_KFBXMANIPULATORS_H
00123