Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoomTouch.h
00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc.
00002 //
00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
00004 // and considered a trade secret as defined under civil and criminal statutes.
00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
00006 // unauthorized use or misappropriation of its trade secrets.  Use of this information
00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
00009 
00010 // HPanCamera.h : interface of the HPanCamera class
00011 // zooms the camera of current view in realtime
00012 
00013 #ifndef _HOpCameraZoomTouch_H
00014 #define _HOpCameraZoomTouch_H
00015 
00016 #ifdef H_PACK_8
00017 #pragma pack(push)
00018 #pragma pack(8)
00019 #endif
00020 
00021 #include "HTools.h"
00022 #include "HBaseOperator.h"
00023 
00025 
00032 class MVO_API HOpCameraZoomTouch : public HBaseOperator
00033 {
00034 public:
00042      HOpCameraZoomTouch (HBaseView* view, int DoRepeat=0, int DoCapture=1);
00043     virtual ~HOpCameraZoomTouch();
00044 
00048     virtual const char * GetName();  
00049 
00056     virtual int OnTouchesDown (HEventInfo &hevent);
00057 
00063     virtual int OnTouchesMove(HEventInfo &hevent);
00064 
00070     virtual int OnTouchesUp (HEventInfo &hevent);
00071 
00078     void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
00079 
00081     bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
00087     virtual HBaseOperator * Clone();
00088 
00089 private:
00090     bool    m_LightFollowsCamera;   
00091     HPoint  m_ptDist, m_ptCamera;
00092     float   m_Width, m_Height, m_fLength;
00093     HTouchInfo m_LastTouch1;
00094     HTouchInfo m_LastTouch2;
00095    
00096 };
00097 
00098 
00099 #ifdef H_PACK_8
00100 #pragma pack(pop)
00101 #endif
00102 
00103 #endif
00104 
00105 
00106