Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpCameraOrbit.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 // HOpCameraOrbit.h : interface of the HOpCameraOrbit class
11 // orbits the camera of current view usual a virtual trackball
12 // interface
13 
14 #ifndef _HOPCAMERAORBIT_H
15 #define _HOPCAMERAORBIT_H
16 
17 #ifdef H_PACK_8
18 #pragma pack(push)
19 #pragma pack(8)
20 #endif
21 
22 #include "HTools.h"
23 #include "HBaseOperator.h"
24 
25 
27 
39 class MVO_API HOpCameraOrbit : public HBaseOperator
40 {
41 public:
49  HOpCameraOrbit (HBaseView* view, int DoRepeat=0, int DoCapture=1);
50  virtual ~HOpCameraOrbit();
51 
55  virtual const char * GetName();
56 
57 
64  virtual int OnLButtonDown (HEventInfo &hevent);
65 
66 
74  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
75 
76 
77 
83  virtual int OnLButtonUp (HEventInfo &hevent);
84 
91  void SetLightFollowsCamera(bool follow){m_bLightFollowsCamera = follow;};
92 
94  bool GetLightFollowsCamera(){return m_bLightFollowsCamera;};
95 
101  void SetSceneBoundingBoxVis(bool vis){m_bSceneBoundingBoxVis = vis;};
102 
104  bool GetSceneBoundingBoxVis(){return m_bSceneBoundingBoxVis;};
105 
106 
112  virtual HBaseOperator * Clone();
113 
115  float m_Angle2, m_Angle1, m_Angle3; /*these variable should not be public*/
116 
118  bool GetSingleClick() { return m_bSingleClick; }
119 
120 protected:
121 
128 private:
129  HPoint m_ptRealFirst;
130 };
131 
132 #ifdef H_PACK_8
133 #pragma pack(pop)
134 #endif
135 
136 #endif
137 
138 
139 
virtual int OnLButtonDownAndMove(HEventInfo &hevent)
virtual const char * GetName()
bool m_bSceneBoundingBoxVis
Definition: HOpCameraOrbit.h:123
virtual int OnLButtonUp(HEventInfo &hevent)
The HOpCameraOrbit class provides interactive orbiting of the camera around a scene.
Definition: HOpCameraOrbit.h:39
HPoint m_ptRealOld
Definition: HOpCameraOrbit.h:126
bool GetSingleClick()
Definition: HOpCameraOrbit.h:118
virtual HBaseOperator * Clone()
bool m_bSingleClick
Definition: HOpCameraOrbit.h:124
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 SetSceneBoundingBoxVis(bool vis)
Definition: HOpCameraOrbit.h:101
bool m_bLightFollowsCamera
Definition: HOpCameraOrbit.h:122
virtual int OnLButtonDown(HEventInfo &hevent)
bool GetSceneBoundingBoxVis()
Definition: HOpCameraOrbit.h:104
bool GetLightFollowsCamera()
Definition: HOpCameraOrbit.h:94
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraOrbit.h:91
float m_Angle2
Definition: HOpCameraOrbit.h:115