FBX SDK Reference Guide: kfbxmanipulators.h Source File
Go to the documentation of this file.
00001 
00003 #ifndef _FBXSDK_MANIPULATORS_H_
00004 #define _FBXSDK_MANIPULATORS_H_
00005 
00006 /**************************************************************************************
00007 
00008  Copyright © 2001 - 2008 Autodesk, Inc. and/or its licensors.
00009  All Rights Reserved.
00010 
00011  The coded instructions, statements, computer programs, and/or related material 
00012  (collectively the "Data") in these files contain unpublished information 
00013  proprietary to Autodesk, Inc. and/or its licensors, which is protected by 
00014  Canada and United States of America federal copyright law and by international 
00015  treaties. 
00016  
00017  The Data may not be disclosed or distributed to third parties, in whole or in
00018  part, without the prior written consent of Autodesk, Inc. ("Autodesk").
00019 
00020  THE DATA IS PROVIDED "AS IS" AND WITHOUT WARRANTY.
00021  ALL WARRANTIES ARE EXPRESSLY EXCLUDED AND DISCLAIMED. AUTODESK MAKES NO
00022  WARRANTY OF ANY KIND WITH RESPECT TO THE DATA, EXPRESS, IMPLIED OR ARISING
00023  BY CUSTOM OR TRADE USAGE, AND DISCLAIMS ANY IMPLIED WARRANTIES OF TITLE, 
00024  NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OR USE. 
00025  WITHOUT LIMITING THE FOREGOING, AUTODESK DOES NOT WARRANT THAT THE OPERATION
00026  OF THE DATA WILL BE UNINTERRUPTED OR ERROR FREE. 
00027  
00028  IN NO EVENT SHALL AUTODESK, ITS AFFILIATES, PARENT COMPANIES, LICENSORS
00029  OR SUPPLIERS ("AUTODESK GROUP") BE LIABLE FOR ANY LOSSES, DAMAGES OR EXPENSES
00030  OF ANY KIND (INCLUDING WITHOUT LIMITATION PUNITIVE OR MULTIPLE DAMAGES OR OTHER
00031  SPECIAL, DIRECT, INDIRECT, EXEMPLARY, INCIDENTAL, LOSS OF PROFITS, REVENUE
00032  OR DATA, COST OF COVER OR CONSEQUENTIAL LOSSES OR DAMAGES OF ANY KIND),
00033  HOWEVER CAUSED, AND REGARDLESS OF THE THEORY OF LIABILITY, WHETHER DERIVED
00034  FROM CONTRACT, TORT (INCLUDING, BUT NOT LIMITED TO, NEGLIGENCE), OR OTHERWISE,
00035  ARISING OUT OF OR RELATING TO THE DATA OR ITS USE OR ANY OTHER PERFORMANCE,
00036  WHETHER OR NOT AUTODESK HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS
00037  OR DAMAGE. 
00038 
00039 **************************************************************************************/
00040 
00041 #include <kaydaradef.h>
00042 #ifndef KFBX_DLL 
00043     #define KFBX_DLL K_DLLIMPORT
00044 #endif
00045 
00046 #include <kaydara.h>
00047 
00048 #include <kfbxplugins/kfbxobject.h>
00049 #include <kfbxplugins/kfbxcamera.h>
00050 #include <kfbxmath/kfbxvector2.h>
00051 #include <kfbxmath/kfbxvector4.h>
00052 
00053 #include <fbxfilesdk_nsbegin.h>
00054 
00055 class KFbxCamManip_state;
00056 
00060 class KFBX_DLL KFbxCameraManipulator : public KFbxObject
00061 {
00062     KFBXOBJECT_DECLARE(KFbxCameraManipulator, KFbxObject);
00063 
00064 public:
00068     void SetCamera(const KFbxCamera& pCamera, bool pValidateLookAtPos);
00069 
00072     void SetUpVector(const KFbxVector4& pUpVector);
00073 
00076     void FrameAll(const KFbxScene& pScene);
00077 
00080     void FrameSelected(const KFbxScene& pScene);
00081 
00086     bool OrbitBegin(int pMouseX, int pMouseY);
00087 
00092     bool OrbitNotify(int pMouseX, int pMouseY);
00093 
00095     void OrbitEnd();
00096 
00101     bool DollyBegin(int pMouseX, int pMouseY);
00102 
00107     bool DollyNotify(int pMouseX, int pMouseY);
00108 
00110     void DollyEnd();
00111 
00116     bool PanBegin(int pMouseX, int pMouseY);
00117 
00122     bool PanNotify(int pMouseX, int pMouseY);
00123 
00125     void PanEnd();
00126 
00128 //
00129 //  WARNING!
00130 //
00131 //  Anything beyond these lines may not be documented accurately and is 
00132 //  subject to change without notice.
00133 //
00135 
00136 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00137 
00138 public:
00139     virtual KFbxObject* Clone(KFbxObject* pContainer, KFbxObject::ECloneType pCloneType) const;
00140 
00142     KFbxCameraManipulator& operator=(KFbxCameraManipulator const& pCamManip);
00143 
00144 private:
00145     KFbxCameraManipulator(KFbxSdkManager& pManager, char const* pName);
00146     ~KFbxCameraManipulator();
00147 
00148     KFbxCamManip_state* mState;
00149 #endif // #ifndef DOXYGEN_SHOULD_SKIP_THIS 
00150 };
00151 
00152 #include <fbxfilesdk_nsend.h>
00153 
00154 #endif // #ifndef _FBXSDK_MANIPULATORS_H_
00155 
00156