|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.visioglobe.libVisioDevKit.VgReferenced
com.visioglobe.libVisioDevKit.VgINavigation
public class VgINavigation
VgINavigation represents a Navigation object
Field Summary |
---|
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
---|
swigCMemOwn, swigRefPtr |
Constructor Summary | |
---|---|
VgINavigation(long cPtr,
boolean cMemoryOwn)
Constructor. |
Method Summary | |
---|---|
void |
addListener(VgINavigationListenerRefPtr pListener)
Adds a listener to the navgiation object. |
void |
delete()
|
protected void |
finalize()
|
VgPosition |
getClosestPositionOnRoute()
Calculates the closest position on the route, given the current position (VgINavigation::getCurrentPosition()). |
static long |
getCPtr(VgINavigation obj)
|
long |
getCurrentInstructionIndex()
Gets the index of the active instruction. |
VgPosition |
getCurrentPosition()
Gets the last position that was notified. |
double |
getDistanceFromRoute()
Gets the distance between current position (VgINavigation::getCurrentPosition()) and closest position on route |
VgINavigationInstructionConstRefPtr |
getInstruction(long pIndex)
Gets a navigation instruction |
double |
getInstructionGeofenceDistance()
Gets the distance in meters of the threshold when to switch instructions. |
long |
getNumInstructions()
Gets the number of navigation instructions |
VgINavigationRequestParameters |
getRequestParameters()
|
void |
removeListener(VgINavigationListenerRefPtr pListener)
Removes a listener from the navigation object. |
void |
setInstructionGeofenceDistance(double pDistanceInMeters)
Sets the distance in meters of the threshold when to switch instructions. |
void |
updateCurrentPosition(VgPosition pPosition,
double pTime)
Injects new position. |
Methods inherited from class com.visioglobe.libVisioDevKit.VgReferenced |
---|
getCPtr, getNbReferences, ref, unref |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VgINavigation(long cPtr, boolean cMemoryOwn)
Method Detail |
---|
public static long getCPtr(VgINavigation obj)
protected void finalize()
finalize
in class VgReferenced
public void delete()
delete
in class VgReferenced
public void addListener(VgINavigationListenerRefPtr pListener)
pListener
- The navigation listener to be added.public void removeListener(VgINavigationListenerRefPtr pListener)
pListener
- The navigation listener to be removed.public VgINavigationInstructionConstRefPtr getInstruction(long pIndex)
pIndex
- index of instruction
public long getNumInstructions()
public void updateCurrentPosition(VgPosition pPosition, double pTime)
pPosition
- The new current position.pTime
- Time of the position capture. If unknown, use 0.public VgPosition getCurrentPosition()
public long getCurrentInstructionIndex()
public VgPosition getClosestPositionOnRoute()
public double getDistanceFromRoute()
public void setInstructionGeofenceDistance(double pDistanceInMeters)
pDistanceInMeters
- Radius distance in meters.public double getInstructionGeofenceDistance()
public VgINavigationRequestParameters getRequestParameters()
|
VisioDevKit 2.0, Visioglobe® 2013 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |