VisioMove SDK (iOS)  2.1.22
VgApplication::VgISimpleGestureManipulatorListener Class Referenceabstract
Inheritance diagram for VgApplication::VgISimpleGestureManipulatorListener:
Inheritance graph

Public Member Functions

virtual ~VgISimpleGestureManipulatorListener ()
 
virtual void onSimplePinch (const VgEngine::VgGestureState pState, const float pSpan, const float pVelocity)=0
 
virtual void onSimpleDrag (const VgEngine::VgGestureState pState, const unsigned int pNbTouch, const float pAverageXOffset, const float pAverageYOffset)=0
 
virtual void onClick (float x, float y)=0
 
virtual void onDoubleClick (float x, float y)=0
 
- Public Member Functions inherited from VgEngine::VgReferenced
 VgReferenced ()
 
 VgReferenced (const VgReferenced &pThis)
 
virtual ~VgReferenced ()
 
VgReferencedoperator= (const VgReferenced &pThis)
 
void ref () const
 
int unref () const
 
int getNbReferences () const
 

Additional Inherited Members

- Protected Attributes inherited from VgEngine::VgReferenced
int mNbReferences
 

Detailed Description

Listener of simple gestures. It is a convenience class to ease simple gestures handling.

Note
A drag event always follows a pinch.
Version
2.0

Constructor & Destructor Documentation

virtual VgApplication::VgISimpleGestureManipulatorListener::~VgISimpleGestureManipulatorListener ( )
virtual

Member Function Documentation

virtual void VgApplication::VgISimpleGestureManipulatorListener::onClick ( float  x,
float  y 
)
pure virtual

Callback on a click gesture. This gesture has no state.

Parameters
xnormalized screen coordinate. 0.0f is left of screen, 1.0f is right.
ynormalized screen coordinate. 0.0f is top, 1.0f is bottom.
Remarks
these are the same parameters for VgICamera::pickGeographicPoint
Version
2.0.8002
virtual void VgApplication::VgISimpleGestureManipulatorListener::onDoubleClick ( float  x,
float  y 
)
pure virtual

Callback on a double click gesture. This gesture has no state.

Parameters
xnormalized screen coordinate. 0.0f is left of screen, 1.0f is right.
ynormalized screen coordinate. 0.0f is top, 1.0f is bottom.
Remarks
these are the same parameters for VgICamera::pickGeographicPoint
there is no filtering of "onClick" events on a double click event, meaning each onDoubleClick event will be preceded by two onClick events.
Version
2.0.8002
virtual void VgApplication::VgISimpleGestureManipulatorListener::onSimpleDrag ( const VgEngine::VgGestureState  pState,
const unsigned int  pNbTouch,
const float  pAverageXOffset,
const float  pAverageYOffset 
)
pure virtual

Callback on a drag gesture.

Parameters
pStateThe state associated with the gesture.
pNbTouchNumber of fingers on the touchpad.
pAverageXOffsetAverage dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset.
pAverageYOffsetAverage dragging offset in pixels since previous callback. The offset is computed as an average of each finger's offset.
Remarks
This callback handles dragging gestures up to 2 fingers at the same time. With 3 fingers or more, this callback won't be triggered.
virtual void VgApplication::VgISimpleGestureManipulatorListener::onSimplePinch ( const VgEngine::VgGestureState  pState,
const float  pSpan,
const float  pVelocity 
)
pure virtual

Callback on a pinch gesture with two fingers.

Parameters
pStateThe state associated with the gesture.
pSpanDistance in pixels between the two fingers.
pVelocitySpeed in pixels per milliseconds.

The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016