com.visioglobe.libVisioDevKit
Class VgINavigationListener

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgReferenced
      extended by 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

Field Summary
 
Fields inherited from class com.visioglobe.libVisioDevKit.VgReferenced
swigCMemOwn, swigRefPtr
 
Constructor Summary
protected VgINavigationListener()
           
  VgINavigationListener(long cPtr, boolean cMemoryOwn)
          Constructor.
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgINavigationListener obj)
           
 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
 void notifyPositionUpdated(VgINavigationConstRefPtr pNavigation, VgPosition pPosition, double pTime)
          This method is called every time a position is injected into the VgINavigation object.
protected  void swigDirectorDisconnect()
           
 void swigReleaseOwnership()
           
 void swigTakeOwnership()
           
 
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

VgINavigationListener

public VgINavigationListener(long cPtr,
                             boolean cMemoryOwn)
Constructor.


VgINavigationListener

protected VgINavigationListener()
Method Detail

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 user
pTime - 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.

VisioDevKit 2.0, Visioglobe® 2013