com.visioglobe.libVisioDevKit
Class VgPosition

java.lang.Object
  extended by com.visioglobe.libVisioDevKit.VgPosition

public class VgPosition
extends java.lang.Object

This struct encapsulates a 3D position. This interpretation of the contents depends on the spatial reference system member. As of now, it can either be local metric coordinates (x, y, z) or WGS84 coordinates (latitude, longitude, altitude) in decimal degrees (and meters above water for altitude).

Class:
VgEngine::VgPosition

Field Summary
protected  boolean swigCMemOwn
           
 
Constructor Summary
VgPosition()
           
VgPosition(double pXOrLongitude, double pYOrLatitude, double pZOrAltitude)
           
VgPosition(double pXOrLongitude, double pYOrLatitude, double pZOrAltitude, VgSRSConstRefPtr pSRS)
           
VgPosition(long cPtr, boolean cMemoryOwn)
           
VgPosition(VgPosition pOther)
          Copy constructor.
VgPosition(VgSRSConstRefPtr pSRS)
           
 
Method Summary
 void delete()
           
protected  void finalize()
           
static long getCPtr(VgPosition obj)
           
 VgSRSConstRefPtr getMSRS()
          The SRS the position is expressed in.
 double getMXOrLongitude()
          Depending on the SRS used this may be local metric X coordinate, or longitude.
 double getMYOrLatitude()
          Depending on the SRS used this may be local metric Y coordinate, or latitude.
 double getMZOrAltitude()
          Depending on the SRS used this may be local metric Z coordinate, or altitude.
 void setMSRS(VgSRSConstRefPtr value)
          The SRS the position is expressed in.
 void setMXOrLongitude(double value)
          Depending on the SRS used this may be local metric X coordinate, or longitude.
 void setMYOrLatitude(double value)
          Depending on the SRS used this may be local metric Y coordinate, or latitude.
 void setMZOrAltitude(double value)
          Depending on the SRS used this may be local metric Z coordinate, or altitude.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

swigCMemOwn

protected boolean swigCMemOwn
Constructor Detail

VgPosition

public VgPosition(long cPtr,
                  boolean cMemoryOwn)

VgPosition

public VgPosition()

VgPosition

public VgPosition(VgSRSConstRefPtr pSRS)

VgPosition

public VgPosition(VgPosition pOther)
Copy constructor. Initializes the position.

Parameters:
pOther - The position object to copy.

VgPosition

public VgPosition(double pXOrLongitude,
                  double pYOrLatitude,
                  double pZOrAltitude)

VgPosition

public VgPosition(double pXOrLongitude,
                  double pYOrLatitude,
                  double pZOrAltitude,
                  VgSRSConstRefPtr pSRS)
Method Detail

getCPtr

public static long getCPtr(VgPosition obj)

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object

delete

public void delete()

setMSRS

public void setMSRS(VgSRSConstRefPtr value)
The SRS the position is expressed in. If NULL, it means the position is expressed in WGS84 coordinates.


getMSRS

public VgSRSConstRefPtr getMSRS()
The SRS the position is expressed in. If NULL, it means the position is expressed in WGS84 coordinates.


setMXOrLongitude

public void setMXOrLongitude(double value)
Depending on the SRS used this may be local metric X coordinate, or longitude.


getMXOrLongitude

public double getMXOrLongitude()
Depending on the SRS used this may be local metric X coordinate, or longitude.


setMYOrLatitude

public void setMYOrLatitude(double value)
Depending on the SRS used this may be local metric Y coordinate, or latitude.


getMYOrLatitude

public double getMYOrLatitude()
Depending on the SRS used this may be local metric Y coordinate, or latitude.


setMZOrAltitude

public void setMZOrAltitude(double value)
Depending on the SRS used this may be local metric Z coordinate, or altitude.


getMZOrAltitude

public double getMZOrAltitude()
Depending on the SRS used this may be local metric Z coordinate, or altitude.


VisioDevKit 2.0, Visioglobe® 2013