HOpCameraZoom.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 _HOPCAMERAZOOM_H
14 #define _HOPCAMERAZOOM_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 
36 class MVO_API HOpCameraZoom : public HBaseOperator
37 {
38 public:
46  HOpCameraZoom (HBaseView* view, int DoRepeat=0, int DoCapture=1);
47  virtual ~HOpCameraZoom();
48 
52  virtual const char * GetName();
53 
60  virtual int OnLButtonDown (HEventInfo &hevent);
61 
70  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
71 
77  virtual int OnLButtonUp (HEventInfo &hevent);
78 
85  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
86 
88  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
94  virtual HBaseOperator * Clone();
95 
96 private:
97  bool m_LightFollowsCamera;
98  HPoint m_ptDist, m_ptCamera;
99  float m_Width, m_Height, m_fLength;
100 };
101 
102 
103 #ifdef H_PACK_8
104 #pragma pack(pop)
105 #endif
106 
107 #endif
108 
109 
110 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
virtual int OnLButtonUp(HEventInfo &hevent)
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 HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoom.h:85
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpCameraZoom class zooms the camera toward a target.
Definition: HOpCameraZoom.h:36
bool GetLightFollowsCamera()
Definition: HOpCameraZoom.h:88