HOpCameraPan.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 // HOpCameraPan.h : interface of the HOpCameraPan class
11 // pans the camera of current view
12 
13 #ifndef _HOPCAMERAPAN_H
14 #define _HOPCAMERAPAN_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 
35 class MVO_API HOpCameraPan : public HBaseOperator
36 {
37 public:
45  HOpCameraPan(HBaseView* view, int DoRepeat=0, int DoCapture=1);
46  virtual ~HOpCameraPan();
47 
51  virtual const char * GetName();
52 
58  virtual int OnLButtonDown (HEventInfo &hevent);
59 
67  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
68 
74  virtual int OnLButtonUp (HEventInfo &hevent);
75 
82  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
83 
85  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
86 
92  virtual HBaseOperator * Clone();
93 
94 private:
95  bool m_LightFollowsCamera;
96 };
97 
98 
99 #ifdef H_PACK_8
100 #pragma pack(pop)
101 #endif
102 
103 #endif
104 
105 
106 
107 
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 HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
bool GetLightFollowsCamera()
Definition: HOpCameraPan.h:85
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
virtual int OnLButtonDown(HEventInfo &hevent)
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraPan.h:82
The HOpCameraPan class pans the camera about a current view.
Definition: HOpCameraPan.h:35