This manipulator handles the user's gestures while the layer selector is active.
More...
Inherits VgApplication::VgISimpleGestureManipulatorListener, and VgApplication::VgISimpleGestureManipulatorListener.
List of all members.
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.
|
| 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.
|
| 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.
|
| 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.
|
| void | setViewSize (unsigned int pWidth, unsigned int pHeight) |
Protected Member Functions |
| void | cancelDragGesture () |
| | Cancels a drag gesture by restoring the original camera view.
|
| void | cancelPinchGesture () |
| | Cancels a pinch gesture by restoring the original layers positions.
|
| void | cancelDragGesture () |
| | Cancels a drag gesture by restoring the original camera view.
|
| void | cancelPinchGesture () |
| | Cancels a pinch gesture by restoring the original layers positions.
|
Protected Attributes |
| VgMyStackedLayerAndCameraHandler * | mSelector |
| VgApplication::VgIApplication * | mApplication |
| int | mDragTotalOffsetY |
| bool | mDragGestureStarted |
| bool | mPinchGestureStarted |
| unsigned int | mViewSize [2] |
| float | mOriginalSpan |
| VgMyStackedLayerAndCameraHandlerOldWithPinch * | mSelector |
Detailed Description
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.
Constructor & Destructor Documentation
| FloorSelectorManipulator::FloorSelectorManipulator |
( |
VgApplication::VgIApplication * |
pApplication, |
|
|
VgMyStackedLayerAndCameraHandler * |
pSelector, |
|
|
unsigned int |
pViewWidthInPixels, |
|
|
unsigned int |
pViewHeightInPixels |
|
) |
| |
| virtual FloorSelectorManipulator::~FloorSelectorManipulator |
( |
) |
[virtual] |
| FloorSelectorManipulator::FloorSelectorManipulator |
( |
VgApplication::VgIApplication * |
pApplication, |
|
|
VgMyStackedLayerAndCameraHandlerOldWithPinch * |
pSelector, |
|
|
unsigned int |
pViewWidthInPixels, |
|
|
unsigned int |
pViewHeightInPixels |
|
) |
| |
| virtual FloorSelectorManipulator::~FloorSelectorManipulator |
( |
) |
[virtual] |
Member Function Documentation
| void FloorSelectorManipulator::cancelDragGesture |
( |
) |
[protected] |
Cancels a drag gesture by restoring the original camera view.
| void FloorSelectorManipulator::cancelDragGesture |
( |
) |
[protected] |
Cancels a drag gesture by restoring the original camera view.
| void FloorSelectorManipulator::cancelPinchGesture |
( |
) |
[protected] |
Cancels a pinch gesture by restoring the original layers positions.
| void FloorSelectorManipulator::cancelPinchGesture |
( |
) |
[protected] |
Cancels a pinch gesture by restoring the original layers positions.
| virtual void FloorSelectorManipulator::onClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| [virtual] |
| virtual void FloorSelectorManipulator::onDoubleClick |
( |
float |
x, |
|
|
float |
y |
|
) |
| [virtual] |
| virtual void FloorSelectorManipulator::onSimpleDrag |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const unsigned int |
pNbTouch, |
|
|
const float |
pAverageXOffset, |
|
|
const float |
pAverageYOffset |
|
) |
| [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 void FloorSelectorManipulator::onSimpleDrag |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const unsigned int |
pNbTouch, |
|
|
const float |
pAverageXOffset, |
|
|
const float |
pAverageYOffset |
|
) |
| [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 void FloorSelectorManipulator::onSimplePinch |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const float |
pSpan, |
|
|
const float |
pVelocity |
|
) |
| [virtual] |
This override triggers the selection of the centered floor if the pinch gesture is a quick zoom-in.
| virtual void FloorSelectorManipulator::onSimplePinch |
( |
const VgEngine::VgGestureState |
pState, |
|
|
const float |
pSpan, |
|
|
const float |
pVelocity |
|
) |
| [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 |
|
) |
| |
Member Data Documentation
The documentation for this class was generated from the following files:
- VgMyStackedLayerAndCameraHandler.h
- VgMyStackedLayerAndCameraHandlerOldWithPinch.h