| Linderdaum Engine: clGestureHandler Class Reference | ![]() |
Generic gesture handler, useful if you want to access multitouches manually. More...
#include <Gestures.h>
Public Member Functions | |
| clGestureHandler () | |
| virtual void | AfterConstruction () |
| virtual bool | IsGestureValid () const |
| return true if MotionData contains meaningful info | |
| virtual bool | IsDraggingValid () const |
| return true if dragging valid | |
| virtual const LMotionData * | GetMotionData () const |
| access to the actual motion data, no changes allowed | |
| virtual LVector2 | GetPositionDelta () const |
| get the vector between the initial and the current position | |
| virtual LMatrix4 | GetTranslationMatrix () const |
| get translation matrix for moving with a click | |
| virtual const sTouchPoint & | GetInitialTouchPoint () const |
| get the position of the first touch point in the current gesture, immutable within a gesture | |
| virtual const sTouchPoint & | GetCurrentTouchPoint () const |
| get the position of the current touch point in the current gesture, that means the current position of the last point touched | |
| virtual void | AddListener (iGestureResponder *Listener) |
| virtual size_t | GetNumListeners () const |
| virtual iGestureResponder * | GetListener (size_t i) const |
| virtual void | Event_MOTION (LEvent Event, const LEventArgs &Args) |
Protected Member Functions | |
| virtual void | UpdateGesture () |
Protected Attributes | |
| LMotionData | FMotionData |
Private Attributes | |
| std::vector< iGestureResponder * > | FListeners |
| bool | FMotionDataValid |
| bool | FMoving |
| sTouchPoint | FInitialPoint |
| sTouchPoint | FCurrentPoint |
Generic gesture handler, useful if you want to access multitouches manually.
| clGestureHandler::clGestureHandler | ( | ) | [inline] |
| virtual void clGestureHandler::AddListener | ( | iGestureResponder * | Listener | ) | [inline, virtual] |
| void clGestureHandler::AfterConstruction | ( | ) | [virtual] |
Reimplemented from iObject.
Reimplemented in clFlingHandler.
| void clGestureHandler::Event_MOTION | ( | LEvent | Event, |
| const LEventArgs & | Args | ||
| ) | [virtual] |
| virtual const sTouchPoint& clGestureHandler::GetCurrentTouchPoint | ( | ) | const [inline, virtual] |
get the position of the current touch point in the current gesture, that means the current position of the last point touched
| virtual const sTouchPoint& clGestureHandler::GetInitialTouchPoint | ( | ) | const [inline, virtual] |
get the position of the first touch point in the current gesture, immutable within a gesture
| virtual iGestureResponder* clGestureHandler::GetListener | ( | size_t | i | ) | const [inline, virtual] |
| virtual const LMotionData* clGestureHandler::GetMotionData | ( | ) | const [inline, virtual] |
access to the actual motion data, no changes allowed
| virtual size_t clGestureHandler::GetNumListeners | ( | ) | const [inline, virtual] |
| LVector2 clGestureHandler::GetPositionDelta | ( | ) | const [virtual] |
get the vector between the initial and the current position
| LMatrix4 clGestureHandler::GetTranslationMatrix | ( | ) | const [virtual] |
get translation matrix for moving with a click
| bool clGestureHandler::IsDraggingValid | ( | ) | const [virtual] |
return true if dragging valid
| virtual bool clGestureHandler::IsGestureValid | ( | ) | const [inline, virtual] |
return true if MotionData contains meaningful info
| virtual void clGestureHandler::UpdateGesture | ( | ) | [inline, protected, virtual] |
Reimplemented in clFlingHandler2.
sTouchPoint clGestureHandler::FCurrentPoint [mutable, private] |
sTouchPoint clGestureHandler::FInitialPoint [mutable, private] |
std::vector<iGestureResponder*> clGestureHandler::FListeners [private] |
LMotionData clGestureHandler::FMotionData [protected] |
bool clGestureHandler::FMotionDataValid [private] |
bool clGestureHandler::FMoving [mutable, private] |