Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraZoom.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: fdb98e8482499437474f8f34c189b7ef401ea6bc $
13 //
14 
15 // HPanCamera.h : interface of the HPanCamera class
16 // zooms the camera of current view in realtime
17 
18 #ifndef _HOPCAMERAZOOM_H
19 #define _HOPCAMERAZOOM_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 
41 class MVO_API HOpCameraZoom : public HBaseOperator
42 {
43 public:
51  HOpCameraZoom (HBaseView* view, int DoRepeat=0, int DoCapture=1);
52  virtual ~HOpCameraZoom();
53 
57  virtual const char * GetName();
58 
65  virtual int OnLButtonDown (HEventInfo &hevent);
66 
75  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
76 
82  virtual int OnLButtonUp (HEventInfo &hevent);
83 
90  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
91 
93  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
99  virtual HBaseOperator * Clone();
100 
101 private:
102  bool m_LightFollowsCamera;
103  HPoint m_ptDist, m_ptCamera;
104  float m_Width, m_Height, m_fLength;
105 };
106 
107 
108 #ifdef H_PACK_8
109 #pragma pack(pop)
110 #endif
111 
112 #endif
113 
114 
115 
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: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 HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraZoom.h:90
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpCameraZoom class zooms the camera toward a target.
Definition: HOpCameraZoom.h:41
bool GetLightFollowsCamera()
Definition: HOpCameraZoom.h:93