com.visioglobe.libVisioDevKit
Class VgINavigationListener
java.lang.Object
com.visioglobe.libVisioDevKit.VgReferenced
com.visioglobe.libVisioDevKit.VgINavigationListener
public class VgINavigationListener
- extends VgReferenced
The VgINavigationListener allow users to be notified of Navigation related events that
occur within a VgINavigation Object where the listener has been registered.
- Interface:
- VgNavigationModule::VgINavigationListener
- Date:
- 04/10/2011
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VgINavigationListener
public VgINavigationListener(long cPtr,
boolean cMemoryOwn)
- Constructor.
VgINavigationListener
protected VgINavigationListener()
getCPtr
public static long getCPtr(VgINavigationListener obj)
finalize
protected void finalize()
- Overrides:
finalize
in class VgReferenced
delete
public void delete()
- Overrides:
delete
in class VgReferenced
swigDirectorDisconnect
protected void swigDirectorDisconnect()
swigReleaseOwnership
public void swigReleaseOwnership()
swigTakeOwnership
public void swigTakeOwnership()
notifyPositionUpdated
public void notifyPositionUpdated(VgINavigationConstRefPtr pNavigation,
VgPosition pPosition,
double pTime)
- This method is called every time a position is injected into the VgINavigation object.
The user may query the closest position to the route at this point.
- Parameters:
pNavigation
- The source of the event.pPosition
- New position of the userpTime
- Time corresponding to when the position was acquired.
notifyNewInstruction
public void notifyNewInstruction(VgINavigationConstRefPtr pNavigation,
long pIndex)
- This method is called when a new position is close to a new segment on the navigation and when a new
navigation instruction is more appropriate
- Parameters:
pNavigation
- The source of the event.pIndex
- The index of the instruction. The index can be used to retrieve the instruction via the
VgINavigation::getInstruction() method.