Public Member Functions | Protected Attributes

VgMyFloorSelectorTrigger Class Reference

Post draw callback to detect fast zoom-out and triggers the layers stacking. More...

Inherits VgEngine::VgIEnginePostDrawCallback.

Collaboration diagram for VgMyFloorSelectorTrigger:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 VgMyFloorSelectorTrigger (VgEngine::VgICamera *pCamera, VgMyStackedLayerAndCameraHandlerOldWithPinch *pFloorSelector)
virtual ~VgMyFloorSelectorTrigger ()
void postDraw (VgEngine::VgIEngineContext *pContext)

Protected Attributes

VgEngine::VgICamera * mCamera
VgMyStackedLayerAndCameraHandlerOldWithPinchmLayerSelector
VgEngine::VgPosition mPreviousPosition
clock_t mPreviousClock

Detailed Description

Post draw callback to detect fast zoom-out and triggers the layers stacking.

Note:
This callback is used only in the single layer view. As the active manipulator in this view is "2D". It handles the user gestures to manipulate the layer but it cannot be customized as the VgEngine::VgISimpleGestureManipulator. To trigger the stacking, this callback compute the altitude velocity between two frames and switch to the layers overview above a threshold. However, it can be triggered by pinch out of course but also any moves/animations that would perform such a velocity.

Constructor & Destructor Documentation

VgMyFloorSelectorTrigger::VgMyFloorSelectorTrigger ( VgEngine::VgICamera *  pCamera,
VgMyStackedLayerAndCameraHandlerOldWithPinch pFloorSelector 
)
virtual VgMyFloorSelectorTrigger::~VgMyFloorSelectorTrigger (  ) [virtual]

Member Function Documentation

void VgMyFloorSelectorTrigger::postDraw ( VgEngine::VgIEngineContext *  pContext )

Member Data Documentation

VgEngine::VgICamera* VgMyFloorSelectorTrigger::mCamera [protected]
VgEngine::VgPosition VgMyFloorSelectorTrigger::mPreviousPosition [protected]

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013