VisioMove SDK (Android)
2.1.22
|
Public Member Functions | |
VgINavigationRefPtr () | |
VgINavigationRefPtr (VgINavigation pPointer) | |
VgINavigationRefPtr (VgINavigationRefPtr pRefPtr) | |
VgINavigationRefPtr | set (VgINavigation pPointer) |
VgINavigation | __ref__ () |
VgINavigation | __deref__ () |
VgINavigation | get () |
boolean | isValid () |
void | addListener (VgINavigationListenerRefPtr pListener) |
void | removeListener (VgINavigationListenerRefPtr pListener) |
VgINavigationInstructionConstRefPtr | getInstruction (long pIndex) |
long | getNumInstructions () |
void | updateCurrentPosition (VgPosition pPosition, double pTime) |
VgPosition | getCurrentPosition () |
long | getCurrentInstructionIndex () |
VgPosition | getClosestPositionOnRoute () |
double | getDistanceFromRoute () |
long | getCurrentInstructionClosestPositionNextSubIndex () |
void | setInstructionGeofenceDistance (double pDistanceInMeters) |
double | getInstructionGeofenceDistance () |
VgINavigationRequestParameters | getRequestParameters () |
void | ref () |
int | unref () |
int | getNbReferences () |
Static Public Member Functions | |
static VgINavigationRefPtr | getNull () |
VgINavigation represents a Navigation object
VgINavigationRefPtr.VgINavigationRefPtr | ( | ) |
VgINavigationRefPtr.VgINavigationRefPtr | ( | VgINavigation | pPointer | ) |
VgINavigationRefPtr.VgINavigationRefPtr | ( | VgINavigationRefPtr | pRefPtr | ) |
VgINavigation VgINavigationRefPtr.__deref__ | ( | ) |
VgINavigation VgINavigationRefPtr.__ref__ | ( | ) |
void VgINavigationRefPtr.addListener | ( | VgINavigationListenerRefPtr | pListener | ) |
Adds a listener to the navgiation object. If the listener already exists, it does not add it.
pListener | The navigation listener to be added. |
VgINavigation VgINavigationRefPtr.get | ( | ) |
VgPosition VgINavigationRefPtr.getClosestPositionOnRoute | ( | ) |
Calculates the closest position on the route, given the current position ( VgINavigation::getCurrentPosition() ).
long VgINavigationRefPtr.getCurrentInstructionClosestPositionNextSubIndex | ( | ) |
Used to determine where on the current instruction the closest position on route is.
long VgINavigationRefPtr.getCurrentInstructionIndex | ( | ) |
Gets the index of the active instruction. The value will be the same as the last value given by VgINavigationListener::notifyNewInstruction() .
VgPosition VgINavigationRefPtr.getCurrentPosition | ( | ) |
Gets the last position that was notified. This value will be the same as the last value given by VgINavigationListener::notifyPositionUpdated() .
double VgINavigationRefPtr.getDistanceFromRoute | ( | ) |
Gets the distance between current position ( VgINavigation::getCurrentPosition() ) and closest position on route
VgINavigationInstructionConstRefPtr VgINavigationRefPtr.getInstruction | ( | long | pIndex | ) |
Gets a navigation instruction
pIndex | index of instruction |
double VgINavigationRefPtr.getInstructionGeofenceDistance | ( | ) |
Gets the distance in meters of the threshold when to switch instructions.
int VgINavigationRefPtr.getNbReferences | ( | ) |
|
static |
long VgINavigationRefPtr.getNumInstructions | ( | ) |
Gets the number of navigation instructions
VgINavigationRequestParameters VgINavigationRefPtr.getRequestParameters | ( | ) |
boolean VgINavigationRefPtr.isValid | ( | ) |
void VgINavigationRefPtr.ref | ( | ) |
void VgINavigationRefPtr.removeListener | ( | VgINavigationListenerRefPtr | pListener | ) |
Removes a listener from the navigation object.
pListener | The navigation listener to be removed. |
VgINavigationRefPtr VgINavigationRefPtr.set | ( | VgINavigation | pPointer | ) |
void VgINavigationRefPtr.setInstructionGeofenceDistance | ( | double | pDistanceInMeters | ) |
Sets the distance in meters of the threshold when to switch instructions. this number is a function of the accuracy of the position information. If too large, instructions will switch rapidly, if too small, instructions will not change.
pDistanceInMeters | Radius distance in meters. Initial value is 2.5 meters. |
int VgINavigationRefPtr.unref | ( | ) |
void VgINavigationRefPtr.updateCurrentPosition | ( | VgPosition | pPosition, |
double | pTime | ||
) |
Injects new position. This will trigger a VgINavigationListener::notifyPositionUpdated() event. This method can be used to connect a location provider service to the navigation object.
pPosition | The new current position. The attribute mZOrAltitude of this parameter will be used to determine the corresponding layer within the map. In order for pPosition to be valid it must fall within the boundary of the map ( VgEngine::VgIDatabaseDatasetDescriptor ) and the mZOrAltitude must fall within a layer range ( VgMapModule::VgIMapModule::getHeightRangeForLayer ) |
pTime | Time of the position capture. Will be used when notifying any registered navigation listeners, ( VgNavigationModule::VgINavigationListener::notifyPositionUpdated ). If unknown, use 0. |