HOpCameraZoomTouch.h
1 // Copyright (c) Tech Soft 3D
2 //
3 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc.,
4 // and considered a trade secret as defined under civil and criminal statutes.
5 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of
6 // unauthorized use or misappropriation of its trade secrets. Use of this information
7 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under
8 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use.
9 
10 // HPanCamera.h : interface of the HPanCamera class
11 // zooms the camera of current view in realtime
12 
13 #ifndef _HOpCameraZoomTouch_H
14 #define _HOpCameraZoomTouch_H
15 
16 #ifdef H_PACK_8
17 #pragma pack(push)
18 #pragma pack(8)
19 #endif
20 
21 #include "HTools.h"
22 #include "HBaseOperator.h"
23 
25 
32 class MVO_API HOpCameraZoomTouch : public HBaseOperator
33 {
34 public:
42  HOpCameraZoomTouch (HBaseView* view, int DoRepeat=0, int DoCapture=1);
43  virtual ~HOpCameraZoomTouch();
44 
48  virtual const char * GetName();
49 
56  virtual int OnTouchesDown (HEventInfo &hevent);
57 
63  virtual int OnTouchesMove(HEventInfo &hevent);
64 
70  virtual int OnTouchesUp (HEventInfo &hevent);
71 
78  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
79 
81  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
87  virtual HBaseOperator * Clone();
88 
89 private:
90  bool m_LightFollowsCamera;
91  HPoint m_ptDist, m_ptCamera;
92  float m_Width, m_Height, m_fLength;
93  HTouchInfo m_LastTouch1;
94  HTouchInfo m_LastTouch2;
95 
96 };
97 
98 
99 #ifdef H_PACK_8
100 #pragma pack(pop)
101 #endif
102 
103 #endif
104 
105 
106 
The HOpCameraZoomTouch class zooms the camera toward a target.
Definition: HOpCameraZoomTouch.h:32
virtual const char * GetName()
bool GetLightFollowsCamera()
Definition: HOpCameraZoomTouch.h:81
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoomTouch.h:78
virtual HBaseOperator * Clone()
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:60
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:121
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
The HTouchInfo class encapsulates touch events.
Definition: HEventInfo.h:80
virtual int OnTouchesUp(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnTouchesDown(HEventInfo &hevent)
virtual int OnTouchesMove(HEventInfo &hevent)