Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraOrbit.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: cb8525e0f134e4b98ef967a11a7ef488be28a506 $
13 //
14 
15 // HOpCameraOrbit.h : interface of the HOpCameraOrbit class
16 // orbits the camera of current view usual a virtual trackball
17 // interface
18 
19 #ifndef _HOPCAMERAORBIT_H
20 #define _HOPCAMERAORBIT_H
21 
22 #ifdef H_PACK_8
23 #pragma pack(push)
24 #pragma pack(8)
25 #endif
26 
27 #include "HTools.h"
28 #include "HBaseOperator.h"
29 
30 
32 
44 class MVO_API HOpCameraOrbit : public HBaseOperator
45 {
46 public:
54  HOpCameraOrbit (HBaseView* view, int DoRepeat=0, int DoCapture=1);
55  virtual ~HOpCameraOrbit();
56 
60  virtual const char * GetName();
61 
62 
69  virtual int OnLButtonDown (HEventInfo &hevent);
70 
71 
79  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
80 
81 
82 
88  virtual int OnLButtonUp (HEventInfo &hevent);
89 
96  void SetLightFollowsCamera(bool follow){m_bLightFollowsCamera = follow;};
97 
99  bool GetLightFollowsCamera(){return m_bLightFollowsCamera;};
100 
106  void SetSceneBoundingBoxVis(bool vis){m_bSceneBoundingBoxVis = vis;};
107 
109  bool GetSceneBoundingBoxVis(){return m_bSceneBoundingBoxVis;};
110 
111 
117  virtual HBaseOperator * Clone();
118 
120  float m_Angle2, m_Angle1, m_Angle3; /*these variable should not be public*/
121 
123  bool GetSingleClick() { return m_bSingleClick; }
124 
125 protected:
126 
133 private:
134  HPoint m_ptRealFirst;
135 };
136 
137 #ifdef H_PACK_8
138 #pragma pack(pop)
139 #endif
140 
141 #endif
142 
143 
144 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
bool m_bSceneBoundingBoxVis
Definition: HOpCameraOrbit.h:128
virtual int OnLButtonUp(HEventInfo &hevent)
The HOpCameraOrbit class provides interactive orbiting of the camera around a scene.
Definition: HOpCameraOrbit.h:44
HPoint m_ptRealOld
Definition: HOpCameraOrbit.h:131
bool GetSingleClick()
Definition: HOpCameraOrbit.h:123
virtual HBaseOperator * Clone()
bool m_bSingleClick
Definition: HOpCameraOrbit.h:129
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 SetSceneBoundingBoxVis(bool vis)
Definition: HOpCameraOrbit.h:106
bool m_bLightFollowsCamera
Definition: HOpCameraOrbit.h:127
virtual int OnLButtonDown(HEventInfo &hevent)
bool GetSceneBoundingBoxVis()
Definition: HOpCameraOrbit.h:109
bool GetLightFollowsCamera()
Definition: HOpCameraOrbit.h:99
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraOrbit.h:96
float m_Angle2
Definition: HOpCameraOrbit.h:120