VR-Forces 4.7 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 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)