00001 // 00002 // Copyright (c) 2000 by Tech Soft 3D, LLC. 00003 // The information contained herein is confidential and proprietary to 00004 // Tech Soft 3D, LLC., and considered a trade secret as defined under 00005 // civil and criminal statutes. Tech Soft 3D shall pursue its civil 00006 // and criminal remedies in the event of unauthorized use or misappropriation 00007 // of its trade secrets. Use of this information by anyone other than 00008 // authorized employees of Tech Soft 3D, LLC. is granted only under a 00009 // written non-disclosure agreement, expressly prescribing the scope and 00010 // manner of such use. 00011 // 00012 // $Id: ede2d326293d688950b063a41f84b985be35cb5d $ 00013 // 00014 00015 // HPanCamera.h : interface of the HPanCamera class 00016 // zooms the camera of current view in realtime 00017 00018 #ifndef _HOpCameraZoomTouch_H 00019 #define _HOpCameraZoomTouch_H 00020 00021 #ifdef H_PACK_8 00022 #pragma pack(push) 00023 #pragma pack(8) 00024 #endif 00025 00026 #include "HTools.h" 00027 #include "HBaseOperator.h" 00028 00030 00037 class MVO_API HOpCameraZoomTouch : public HBaseOperator 00038 { 00039 public: 00047 HOpCameraZoomTouch (HBaseView* view, int DoRepeat=0, int DoCapture=1); 00048 virtual ~HOpCameraZoomTouch(); 00049 00053 virtual const char * GetName(); 00054 00061 virtual int OnTouchesDown (HEventInfo &hevent); 00062 00068 virtual int OnTouchesMove(HEventInfo &hevent); 00069 00075 virtual int OnTouchesUp (HEventInfo &hevent); 00076 00083 void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;}; 00084 00086 bool GetLightFollowsCamera(){return m_LightFollowsCamera;}; 00092 virtual HBaseOperator * Clone(); 00093 00094 private: 00095 bool m_LightFollowsCamera; 00096 HPoint m_ptDist, m_ptCamera; 00097 float m_Width, m_Height, m_fLength; 00098 HTouchInfo m_LastTouch1; 00099 HTouchInfo m_LastTouch2; 00100 00101 }; 00102 00103 00104 #ifdef H_PACK_8 00105 #pragma pack(pop) 00106 #endif 00107 00108 #endif 00109 00110 00111