VisioMove SDK (Android)
2.1.22
|
Public Member Functions | |
String | getType () |
boolean | getBoundaries (VgPosition pMinimumPosition, VgPosition pMaximumPosition) |
boolean | setBoundaries (VgPosition pMinimumPosition, VgPosition pMaximumPosition) |
boolean | setBoundaries (VgPositionVector pPositions, boolean pAutoComputeMaxAltitude) |
void | setListener (VgManipulatorListenerRefPtr pListener) |
void | setAnchor (VgPosition pAnchor) |
void | setMinRadius (double pMinRadius) |
void | setMaxRadius (double pMaxRadius) |
Controls the way the user interact with the Open GL surface.
boolean VgManipulator.getBoundaries | ( | VgPosition | pMinimumPosition, |
VgPosition | pMaximumPosition | ||
) |
Retrieves the current boundaries of the camera.
pMinimumPosition | Updates with the minimum latitude, longitude, and altitude the camera is allowed to move. |
pMaximumPosition | Updates with the maximum latitude, longitude, and altitude the camera is allowed to move |
String VgManipulator.getType | ( | ) |
void VgManipulator.setAnchor | ( | VgPosition | pAnchor | ) |
Set the anchor point around with the view will pivot.
pAnchor | position of pivot. |
boolean VgManipulator.setBoundaries | ( | VgPosition | pMinimumPosition, |
VgPosition | pMaximumPosition | ||
) |
Set the boundaries where the camera can move. If the current camera position is outside this new boundary, the camera will be moved inside this new area.
The original values for the manipulators are set on the vg_config.xml or via the default values of the dataset It is usually smaller than that found on the dataset.
pMinimumPosition | Minimum latitude, longitude and altitude the camera is allowed to move. |
pMaximumPosition | Maximum latitude, longitude and altitude the camera is allowed to move. It supposes the all the values are greater than the values in pMinimumPosition |
boolean VgManipulator.setBoundaries | ( | VgPositionVector | pPositions, |
boolean | pAutoComputeMaxAltitude | ||
) |
Set the boundaries where the camera can move. If the current camera position is outside this new boundary, the camera will be moved inside this new area.
The original values for the manipulators are set on the vg_config.xml or via the default values of the dataset It is usually smaller than that found on the dataset.
pPositions | Set of positions used to compute the boundaries. Note: the boundaries will be the bounding box of these positions, not the exact polygon described by them. |
pAutoComputeMaxAltitude | Pass true to compute the best altitude automatically, using VgICamera::getViewpointFromPositions. |
void VgManipulator.setListener | ( | VgManipulatorListenerRefPtr | pListener | ) |
Sets the listener to simple gestures. It is notified once a simple gesture is recognized.
pListener | Simple gestures listener. Pass NULL to remove the current Listener. |
void VgManipulator.setMaxRadius | ( | double | pMaxRadius | ) |
Set the maximum distance to the anchor point.
pMaxRadius | The maximum radius to set. |
void VgManipulator.setMinRadius | ( | double | pMinRadius | ) |
Set the minimum distance to the anchor point.
pMinRadius | The minimum radius to set. |