VisioDevKit-Sample
v2.0
|
This manipulator handles the user's gestures while the layer selector is active. More...
Inherits VgISimpleGestureManipulatorListener, and VgISimpleGestureManipulatorListener.
Public Member Functions | |
FloorSelectorManipulator (VgApplication::VgIApplication *pApplication, VgMyStackedLayerAndCameraHandler *pSelector, unsigned int pViewWidthInPixels, unsigned int pViewHeightInPixels) | |
virtual | ~FloorSelectorManipulator () |
virtual void | onSimplePinch (const VgEngine::VgGestureState pState, const float pSpan, const float pVelocity) |
This override triggers the selection of the centered floor if the pinch gesture is a quick zoom-in. More... | |
virtual void | onSimpleDrag (const VgEngine::VgGestureState pState, const unsigned int pNbTouch, const float pAverageXOffset, const float pAverageYOffset) |
This override displaces the layers when the user performs a vertical drag. More... | |
virtual void | onClick (float x, float y) |
virtual void | onDoubleClick (float x, float y) |
void | setViewSize (unsigned int pWidth, unsigned int pHeight) |
FloorSelectorManipulator (VgApplication::VgIApplication *pApplication, VgMyStackedLayerAndCameraHandlerOldWithPinch *pSelector, unsigned int pViewWidthInPixels, unsigned int pViewHeightInPixels) | |
virtual | ~FloorSelectorManipulator () |
virtual void | onSimplePinch (const VgEngine::VgGestureState pState, const float pSpan, const float pVelocity) |
This override triggers the selection of the centered floor if the pinch gesture is a quick zoom-in. More... | |
virtual void | onSimpleDrag (const VgEngine::VgGestureState pState, const unsigned int pNbTouch, const float pAverageXOffset, const float pAverageYOffset) |
This override displaces the layers when the user performs a vertical drag. More... | |
void | setViewSize (unsigned int pWidth, unsigned int pHeight) |
Protected Member Functions | |
void | cancelDragGesture () |
Cancels a drag gesture by restoring the original camera view. More... | |
void | cancelPinchGesture () |
Cancels a pinch gesture by restoring the original layers positions. More... | |
void | cancelDragGesture () |
Cancels a drag gesture by restoring the original camera view. More... | |
void | cancelPinchGesture () |
Cancels a pinch gesture by restoring the original layers positions. More... | |
Protected Attributes | |
VgMyStackedLayerAndCameraHandler * | mSelector |
VgApplication::VgIApplication * | mApplication |
int | mDragTotalOffsetY |
bool | mDragGestureStarted |
bool | mPinchGestureStarted |
unsigned int | mViewSize [2] |
float | mOriginalSpan |
VgMyStackedLayerAndCameraHandlerOldWithPinch * | mSelector |
This manipulator handles the user's gestures while the layer selector is active.
The VgApplication::VgISimpleGestureManipulatorListener class allow developers to handle by themselves the gestures. The VgApplication::VgISimpleGestureManipulator is the only manipulator that accept a listener.
See VgApplication::VgISimpleGestureManipulatorListener and VgApplication::VgISimpleGestureManipulator documentation for more details.
FloorSelectorManipulator::FloorSelectorManipulator | ( | VgApplication::VgIApplication * | pApplication, |
VgMyStackedLayerAndCameraHandler * | pSelector, | ||
unsigned int | pViewWidthInPixels, | ||
unsigned int | pViewHeightInPixels | ||
) |
|
virtual |
FloorSelectorManipulator::FloorSelectorManipulator | ( | VgApplication::VgIApplication * | pApplication, |
VgMyStackedLayerAndCameraHandlerOldWithPinch * | pSelector, | ||
unsigned int | pViewWidthInPixels, | ||
unsigned int | pViewHeightInPixels | ||
) |
|
virtual |
|
protected |
Cancels a drag gesture by restoring the original camera view.
|
protected |
Cancels a drag gesture by restoring the original camera view.
|
protected |
Cancels a pinch gesture by restoring the original layers positions.
|
protected |
Cancels a pinch gesture by restoring the original layers positions.
|
virtual |
|
virtual |
|
virtual |
This override displaces the layers when the user performs a vertical drag.
It triggers the layer change if the drag is above a threshold.
|
virtual |
This override displaces the layers when the user performs a vertical drag.
It triggers the layer change if the drag is above a threshold.
|
virtual |
This override triggers the selection of the centered floor if the pinch gesture is a quick zoom-in.
|
virtual |
This override triggers the selection of the centered floor if the pinch gesture is a quick zoom-in.
void FloorSelectorManipulator::setViewSize | ( | unsigned int | pWidth, |
unsigned int | pHeight | ||
) |
void FloorSelectorManipulator::setViewSize | ( | unsigned int | pWidth, |
unsigned int | pHeight | ||
) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |