VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtPinchGesture.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 
16 namespace makVrv
17 {
27  {
28  public:
29 
34 
37  {
38  PinchGestureStateUnspecified
39  , PinchGestureStateBegin
40  , PinchGestureStateUpdate
41  , PinchGestureStateEnd
42  };
43 
46 
48  DtPinchGesture( const DtPinchGesture& orig );
49 
51  DtPinchGesture& operator=( const DtPinchGesture& rhs );
52 
54  virtual ~DtPinchGesture();
55 
57  virtual PinchGestureState gestureState() const;
58 
61  virtual void setGestureState( PinchGestureState gestureState );
62 
63 
66  virtual float scaleFactor() const;
67 
70  virtual float lastScaleFactor() const;
71 
74  virtual float totalScaleFactor() const;
75 
78  virtual float rotationAngle() const;
79 
82  virtual float lastRotationAngle() const;
83 
86  virtual float totalRotationAngle() const;
87 
90  virtual DtVector2f startCenterPoint() const;
91 
94  virtual DtVector2f centerPoint() const;
95 
98  virtual DtVector2f lastCenterPoint() const;
99 
102  virtual void processTouchEvent( PinchGestureState gestureState,
103  const DtVector2f& p0, const DtVector2f& p1 );
104 
105  protected:
106 
109  virtual void computeCurrentScaleFactor( PinchGestureState gestureState,
110  const DtVector2f& p0, const DtVector2f& p1 );
111 
112  protected:
115 
118 
122 
126 
130  };
131 }
DtLine2f myStartLine
Definition: DtPinchGesture.h:116
PinchGestureState
Enumeration used to express the current pinch gesture state.
Definition: DtPinchGesture.h:36
DtLine2D class.
DtPinchGesture represents a Pinch Multitouch Gesture.
Definition: DtPinchGesture.h:26
DtVector2< float32 > DtVector2f
Typedefs for templated vectors used throughout.
Definition: DtPinchGesture.h:32
float myTotalScaleFactor
Definition: DtPinchGesture.h:121
PinchGestureState myGestureState
Definition: DtPinchGesture.h:114
float myRotationAngle
Definition: DtPinchGesture.h:123
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtLine2D< float32 > DtLine2f
Definition: DtPinchGesture.h:33
DtVector2f myLastCenterPoint
Definition: DtPinchGesture.h:129
DtLine2f myLastLine
Definition: DtPinchGesture.h:117
bool myInitialized
Definition: DtPinchGesture.h:113
float myTotalRotationAngle
Definition: DtPinchGesture.h:125
DtVector2f myStartCenterPoint
Definition: DtPinchGesture.h:128
float myLastRotationAngle
Definition: DtPinchGesture.h:124
DtVector2f myCenterPoint
Definition: DtPinchGesture.h:127
float myLastScaleFactor
Definition: DtPinchGesture.h:120
float myScaleFactor
Definition: DtPinchGesture.h:119
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)