Introduction

Getting Started

Programming Guides

API Reference

Additional Resources

HOpCameraRollTouch.h
1 // Copyright (c) Tech Soft 3D, Inc.
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 _HOPCAMERAROLLTOUCH_H
14 #define _HOPCAMERAROLLTOUCH_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 
30 class MVO_API HOpCameraRollTouch : public HBaseOperator
31 {
32 public:
40  HOpCameraRollTouch(HBaseView* view, int DoRepeat=0, int DoCapture=1);
41  virtual ~HOpCameraRollTouch();
42 
46  virtual const char * GetName();
47 
53  virtual int OnTouchesDown (HEventInfo &hevent);
54 
60  virtual int OnTouchesMove(HEventInfo &hevent);
61 
67  virtual int OnTouchesUp (HEventInfo &hevent);
68 
75  void SetLightFollowsCamera(bool follow){m_LightFollowsCamera = follow;};
76 
78  bool GetLightFollowsCamera(){return m_LightFollowsCamera;};
79 
85  virtual HBaseOperator * Clone();
86 
87 private:
88  HTouchInfo m_LastTouch1;
89  HTouchInfo m_LastTouch2;
90  bool m_LightFollowsCamera;
91 };
92 
93 
94 #ifdef H_PACK_8
95 #pragma pack(pop)
96 #endif
97 
98 #endif
99 
100 
101 
102 
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:60
The HBaseView class defines and manages a view of model information.
Definition: HBaseView.h:332
The HTouchInfo class encapsulates touch events.
Definition: HEventInfo.h:80
virtual int OnTouchesUp(HEventInfo &hevent)
The HEventInfo class stores and manages event information.
Definition: HEventInfo.h:207
The HOpCameraRollTouch class rolls the camera around the current view axis.
Definition: HOpCameraRollTouch.h:30
virtual int OnTouchesDown(HEventInfo &hevent)
bool GetLightFollowsCamera()
Definition: HOpCameraRollTouch.h:78
virtual int OnTouchesMove(HEventInfo &hevent)
void SetLightFollowsCamera(bool follow)
Definition: HOpCameraRollTouch.h:75