public class WayPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
jniCMemOwn |
protected long |
jniCPtr |
com.ptvag.navigation.sdk.NativeObject |
parent |
Constructor and Description |
---|
WayPoint()
Constructor
|
WayPoint(GeoPosition pos)
Constructor
|
WayPoint(GeoPosition pos,
short course)
Constructor
|
WayPoint(GPSData gps) |
WayPoint(int x,
int y)
Constructor
|
WayPoint(int x,
int y,
short course)
Constructor
|
WayPoint(long cPtr,
boolean cMemoryOwn)
Only for internal use - don't try to call this from Java.
|
WayPoint(long cPtr,
com.ptvag.navigation.sdk.NativeObject parent) |
WayPoint(Position pos)
Constructor
|
WayPoint(Position pos,
short course)
Constructor
|
WayPoint(WayPoint pos)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
delete()
Kills rubbish if owning the object.
|
protected void |
finalize() |
short |
getCourse()
Returns the course of the mercator WayPoint.
|
static long |
getCPtr(com.ptvag.navigation.sdk.NativeObject obj) |
protected static int |
getSize()
Returns the size of a native SDK_WayPoint-Object.
|
int |
getX()
Returns the longitude of the mercator WayPoint.
|
int |
getY()
Returns the latitude of the mercator WayPoint.
|
void |
setCourse(short course)
Sets the course of the mercator WayPoint.
|
void |
setX(int x)
Sets the longitude of the mercator WayPoint.
|
void |
setY(int y)
Sets the latitude of the mercator WayPoint.
|
java.lang.String |
toString() |
protected long jniCPtr
protected boolean jniCMemOwn
public com.ptvag.navigation.sdk.NativeObject parent
public WayPoint(int x, int y, short course)
x
- Mercator WayPoint (longitude)y
- Mercator WayPoint (latitude)course
- Mercator WayPoint (course)public WayPoint(int x, int y)
x
- Mercator WayPoint (longitude)y
- Mercator WayPoint (latitude)public WayPoint(Position pos)
pos
- Mercator positionpublic WayPoint(GeoPosition pos)
pos
- Geodez positionpublic WayPoint(Position pos, short course)
pos
- Mercator positioncourse
- coursepublic WayPoint(GeoPosition pos, short course)
pos
- Geodez positioncourse
- coursepublic WayPoint(GPSData gps)
public WayPoint()
public WayPoint(WayPoint pos)
pos
- - WayPoint to initialize withpublic WayPoint(long cPtr, boolean cMemoryOwn)
public WayPoint(long cPtr, com.ptvag.navigation.sdk.NativeObject parent)
protected static int getSize()
public int getX()
public int getY()
public short getCourse()
public void setX(int x)
x
- - the longitude.public void setY(int y)
y
- - the latitude.public void setCourse(short course)
course
- - the course.public java.lang.String toString()
toString
in class java.lang.Object
public static long getCPtr(com.ptvag.navigation.sdk.NativeObject obj)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void delete()