Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoomTouch.h
1 //
2 // Copyright (c) 2000 by Tech Soft 3D, LLC.
3 // The information contained herein is confidential and proprietary to
4 // Tech Soft 3D, LLC., and considered a trade secret as defined under
5 // civil and criminal statutes. Tech Soft 3D shall pursue its civil
6 // and criminal remedies in the event of unauthorized use or misappropriation
7 // of its trade secrets. Use of this information by anyone other than
8 // authorized employees of Tech Soft 3D, LLC. is granted only under a
9 // written non-disclosure agreement, expressly prescribing the scope and
10 // manner of such use.
11 //
12 // $Id: ede2d326293d688950b063a41f84b985be35cb5d $
13 //
14 
15 // HPanCamera.h : interface of the HPanCamera class
16 // zooms the camera of current view in realtime
17 
18 #ifndef _HOpCameraZoomTouch_H
19 #define _HOpCameraZoomTouch_H
20 
21 #ifdef H_PACK_8
22 #pragma pack(push)
23 #pragma pack(8)
24 #endif
25 
26 #include "HTools.h"
27 #include "HBaseOperator.h"
28 
30 
37 class MVO_API HOpCameraZoomTouch : public HBaseOperator
38 {
39 public:
47  HOpCameraZoomTouch (HBaseView* view, int DoRepeat=0, int DoCapture=1);
48  virtual ~HOpCameraZoomTouch();
49 
53  virtual const char * GetName();
54 
61  virtual int OnTouchesDown (HEventInfo &hevent);
62 
68  virtual int OnTouchesMove(HEventInfo &hevent);
69 
75  virtual int OnTouchesUp (HEventInfo &hevent);
76 
83  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
84 
86  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
92  virtual HBaseOperator * Clone();
93 
94 private:
95  bool m_LightFollowsCamera;
96  HPoint m_ptDist, m_ptCamera;
97  float m_Width, m_Height, m_fLength;
98  HTouchInfo m_LastTouch1;
99  HTouchInfo m_LastTouch2;
100 
101 };
102 
103 
104 #ifdef H_PACK_8
105 #pragma pack(pop)
106 #endif
107 
108 #endif
109 
110 
111 
The HOpCameraZoomTouch class zooms the camera toward a target.
Definition: HOpCameraZoomTouch.h:37
virtual const char * GetName()
bool GetLightFollowsCamera()
Definition: HOpCameraZoomTouch.h:86
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoomTouch.h:83
virtual HBaseOperator * Clone()
The HBaseOperator class serves as a base for classes which handle user input and operate on the scene...
Definition: HBaseOperator.h:65
The HPoint class is the data type of a three-dimensional point.
Definition: HGlobals.h:126
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:337
The HTouchInfo class encapsulates touch events.
Definition: HEventInfo.h:87
virtual int OnTouchesUp(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnTouchesDown(HEventInfo &hevent)
virtual int OnTouchesMove(HEventInfo &hevent)