Linderdaum Engine: clGestureHandler Class Reference
Updated: Sun Feb 5 2012 22:59:50
clGestureHandler Class Reference

Generic gesture handler, useful if you want to access multitouches manually. More...

#include <Gestures.h>

List of all members.

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 LMotionDataGetMotionData () 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 sTouchPointGetInitialTouchPoint () const
 get the position of the first touch point in the current gesture, immutable within a gesture
virtual const sTouchPointGetCurrentTouchPoint () 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 iGestureResponderGetListener (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

Detailed Description

Generic gesture handler, useful if you want to access multitouches manually.


Constructor & Destructor Documentation

clGestureHandler::clGestureHandler ( ) [inline]

Member Function Documentation

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.


Member Data Documentation

bool clGestureHandler::FMoving [mutable, private]

The documentation for this class was generated from the following files: