Alphabetical Class Index  Class Hierarchy   File Members   Compound Members   File List  

HOpCameraRelativeOrbit.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: d861b6db1cbd79ccfae1f2cf74521a5f6bee541b $
13 //
14 
15 // HOpCameraRelativeOrbit.h : interface of the HOpCameraRelativeOrbit class
16 // orbits the camera of current view usual a virtual trackball
17 // interface
18 
19 #ifndef _HOPCAMERARELATIVEORBIT_H
20 #define _HOPCAMERARELATIVEORBIT_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 #include "HOpCameraOrbit.h"
30 
31 
33 
43 class MVO_API HOpCameraRelativeOrbit : public HOpCameraOrbit
44 {
45  enum TargetType {
46  TARGET_IS_USER_DEFINED,
47  TARGET_IS_SELECTION_DEFINED,
48  TARGET_IS_CAMERA_TARGET,
49  };
50 
51 public:
52 
60  HOpCameraRelativeOrbit (HBaseView* view, int doRepeat=0, int doCapture=1);
61 
62  virtual ~HOpCameraRelativeOrbit();
63 
67  virtual const char * GetName();
68 
75  virtual int OnLButtonDown(HEventInfo &hevent);
76 
84  virtual int OnLButtonDownAndMove(HEventInfo &hevent);
85 
86 
92  virtual HBaseOperator * Clone();
93 
94 
99  void SetCenter(HPoint center);
100 
105  HPoint GetCenter();
106 
107 
108 private:
109  HPoint fauxTarget;
110  TargetType targetType;
111 };
112 
113 #ifdef H_PACK_8
114 #pragma pack(pop)
115 #endif
116 
117 #endif
118 
119 
120 
The HOpCameraOrbit class provides interactive orbiting of the camera around a scene.
Definition: HOpCameraOrbit.h:44
virtual const char * GetName()
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
virtual int OnLButtonDown(HEventInfo &hevent)
The HOpCameraRelativeOrbit class provides interactive orbiting of the camera around elements in the s...
Definition: HOpCameraRelativeOrbit.h:43
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:214
virtual int OnLButtonDownAndMove(HEventInfo &hevent)