Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpCameraManipulateTouch.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 // HOpCameraManipulateTouch.h : interface of the HOpCameraManipulateTouch class
11 // Manipulates the camera of current view usual a virtual trackball
12 // interface
13 
14 #ifndef _HOpCameraManipulateTouch_H
15 #define _HOpCameraManipulateTouch_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"
25 class HOpCameraOrbit;
26 class HOpCameraPan;
27 class HOpCameraZoom;
28 class HTClient;
29 class HEventInfo;
31 
39 {
40 public:
52  HOpCameraManipulateTouch (HBaseView* view, int DoRepeat=0, int DoCapture=1, HBaseOperator *orbit = 0, HBaseOperator *pan = 0, HBaseOperator *zoom = 0, HBaseOperator *roll = 0);
53  virtual ~HOpCameraManipulateTouch();
54 
56  virtual const char * GetName();
57 
58 
64  virtual int OnTouchesDown (HEventInfo &hevent);
65 
66 
72  virtual int OnTouchesMove(HEventInfo &hevent);
73 
74 
75 
81  virtual int OnTouchesUp (HEventInfo &hevent);
82 
83 
89  virtual HBaseOperator * Clone();
90 
91  virtual bool OperatorStarted( void );
92 
93 
94 
95 
96 protected:
97 
98 
104 private:
105  HEventInfo *m_LastEvent;
106  float m_time;
107 
108 };
109 
110 #ifdef H_PACK_8
111 #pragma pack(pop)
112 #endif
113 
114 #endif
115 
116 
117 
118 
virtual const char * GetName()
virtual bool OperatorStarted()
Operator has been started if true, and has not been started if false.
Definition: HBaseOperator.h:106
The HOpCameraOrbit class provides interactive orbiting of the camera around a scene.
Definition: HOpCameraOrbit.h:39
Definition: HTManager.h:157
virtual HBaseOperator * Clone()
HBaseOperator * m_pZoomOperator
Definition: HOpCameraManipulateTouch.h:101
HBaseOperator * m_pOrbitOperator
Definition: HOpCameraManipulateTouch.h:99
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
The HOpCameraRelativeOrbit class provides interactive orbiting of the camera around elements in the s...
Definition: HOpCameraRelativeOrbit.h:38
virtual int OnTouchesUp(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
HBaseOperator * m_pPanOperator
Definition: HOpCameraManipulateTouch.h:100
virtual int OnTouchesDown(HEventInfo &hevent)
virtual int OnTouchesMove(HEventInfo &hevent)
HBaseOperator * m_pRollOperator
Definition: HOpCameraManipulateTouch.h:102
The HOpCameraZoom class zooms the camera toward a target.
Definition: HOpCameraZoom.h:36
The HOpCameraPan class pans the camera about a current view.
Definition: HOpCameraPan.h:35
The HOpCameraManipulateTouch class combines the touch versions of the Orbit, Pan and Zoom Operators...
Definition: HOpCameraManipulateTouch.h:38