VisioMove SDK (Android)  2.1.22
 All Classes Functions Variables Pages
VgManipulatorListenerRefPtr Class Reference

Public Member Functions

 VgManipulatorListenerRefPtr ()
 
 VgManipulatorListenerRefPtr (VgManipulatorListener pPointer)
 
 VgManipulatorListenerRefPtr (VgManipulatorListenerRefPtr pRefPtr)
 
VgManipulatorListenerRefPtr set (VgManipulatorListener pPointer)
 
VgManipulatorListener __ref__ ()
 
VgManipulatorListener __deref__ ()
 
VgManipulatorListener get ()
 
boolean isValid ()
 
void onSimplePinch (VgGestureState pState, float pSpan, float pVelocity)
 
void onSimpleDrag (VgGestureState pState, long pNbTouch, float pAverageXOffset, float pAverageYOffset)
 
void onClick (float x, float y)
 
void onDoubleClick (float x, float y)
 
void ref ()
 
int unref ()
 
int getNbReferences ()
 

Static Public Member Functions

static VgManipulatorListenerRefPtr getNull ()
 

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
2.1.19 Renamed from VgISimpleGestureManipulatorListener to VgManipulatorListener.

Constructor & Destructor Documentation

VgManipulatorListenerRefPtr.VgManipulatorListenerRefPtr ( )
VgManipulatorListenerRefPtr.VgManipulatorListenerRefPtr ( VgManipulatorListener  pPointer)
VgManipulatorListenerRefPtr.VgManipulatorListenerRefPtr ( VgManipulatorListenerRefPtr  pRefPtr)

Member Function Documentation

VgManipulatorListener VgManipulatorListenerRefPtr.__deref__ ( )
VgManipulatorListener VgManipulatorListenerRefPtr.__ref__ ( )
VgManipulatorListener VgManipulatorListenerRefPtr.get ( )
int VgManipulatorListenerRefPtr.getNbReferences ( )
static VgManipulatorListenerRefPtr VgManipulatorListenerRefPtr.getNull ( )
static
boolean VgManipulatorListenerRefPtr.isValid ( )
void VgManipulatorListenerRefPtr.onClick ( float  x,
float  y 
)

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

Remarks
these are the same parameters for VgICamera::pickGeographicPoint
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.
Version
2.0.8002
void VgManipulatorListenerRefPtr.onDoubleClick ( float  x,
float  y 
)

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

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.
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.
Version
2.0.8002
void VgManipulatorListenerRefPtr.onSimpleDrag ( VgGestureState  pState,
long  pNbTouch,
float  pAverageXOffset,
float  pAverageYOffset 
)

Callback on a drag gesture.

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.
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.
void VgManipulatorListenerRefPtr.onSimplePinch ( VgGestureState  pState,
float  pSpan,
float  pVelocity 
)

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.
void VgManipulatorListenerRefPtr.ref ( )
VgManipulatorListenerRefPtr VgManipulatorListenerRefPtr.set ( VgManipulatorListener  pPointer)
int VgManipulatorListenerRefPtr.unref ( )

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