public class CoordinateSystem extends LocationType
CoordAxisUtil,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected boolean |
anglesUsed |
protected static java.lang.String |
DEFAULT_CS_ID |
protected static java.lang.String |
DEFAULT_CS_NAME |
protected static java.lang.String |
DEFAULT_ROOT_ELEMENT |
static short |
DOWN_DIRECTION |
static java.lang.String |
DOWN_DIRECTION_STRING |
static short |
EAST_DIRECTION |
static java.lang.String |
EAST_DIRECTION_STRING |
static short |
MAX_DIRECTION |
static short |
MIN_DIRECTION |
static short |
NORTH_DIRECTION |
static java.lang.String |
NORTH_DIRECTION_STRING |
protected double |
pitch |
protected double |
roll |
static short |
SOUTH_DIRECTION |
static java.lang.String |
SOUTH_DIRECTION_STRING |
static short |
UNKNOWN_DIRECTION |
static java.lang.String |
UNKNOWN_DIRECTION_STRING |
static short |
UP_DIRECTION |
static java.lang.String |
UP_DIRECTION_STRING |
static short |
WEST_DIRECTION |
static java.lang.String |
WEST_DIRECTION_STRING |
protected short |
xAxisDirection |
protected double |
yaw |
protected short |
yAxisDirection |
protected short |
zAxisDirection |
ABSOLUTE_ZERO, azimuth, FEUP, id, latitudeRads, longitudeRads, name, offsetDistance, ONE_LAT_DEGREE, zenith| Constructor and Description |
|---|
CoordinateSystem() |
CoordinateSystem(java.lang.String xml) |
| Modifier and Type | Method and Description |
|---|---|
org.dom4j.Document |
asDocument() |
org.dom4j.Document |
asDocument(java.lang.String rootElementName) |
org.dom4j.Element |
asElement() |
org.dom4j.Element |
asElement(java.lang.String rootElementName) |
java.lang.String |
asXML()
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
java.lang.String |
asXML(java.lang.String rootElementName)
Este problema foi resolvido com a versão 1.6.1 do DOM4J.
|
static CoordinateSystem |
createDefaultCoordinateSystem() |
boolean |
equals(java.lang.Object obj) |
boolean |
fromClipboardText(java.lang.String text) |
java.lang.String |
getClipboardText() |
<L extends LocationType> |
getNewAbsoluteLatLonDepth()
Converts a copy of this Location to absolute (Lat/Lon/Depth without offsets).
|
double |
getPitch() |
double |
getRoll() |
double |
getYaw() |
boolean |
isAnglesUsed() |
boolean |
load(org.dom4j.Document doc) |
static void |
main(java.lang.String[] args) |
void |
setAnglesUsed(boolean anglesUsed) |
void |
setCoordinateSystem(CoordinateSystem anotherCS) |
void |
setPitch(double pitchDegrees) |
void |
setPitch(double pitchDegrees,
boolean useAnglesInXMLOutput) |
void |
setRoll(double rollDegrees) |
void |
setRoll(double rollDegrees,
boolean useAnglesInXMLOutput) |
void |
setYaw(double yawDegrees) |
void |
setYaw(double yawDegrees,
boolean useAnglesInXMLOutput) |
java.lang.String |
toString() |
asGPXRoutePoint, asGPXWaypointElement, asGPXWaypointElement, clipboardLocation, clone, compareTo, convertToAbsoluteLatLonDepth, getAbsoluteLatLonDepth, getAbsoluteNEDInMeters, getAllZ, getAzimuth, getDebugString, getDepth, getDistanceInMeters, getDistanceInPixelTo, getHeight, getHorizontalDistanceInMeters, getId, getLatitudeAsPrettyString, getLatitudeAsPrettyString, getLatitudeDegs, getLatitudeRads, getLatitudeStr, getLongitudeAsPrettyString, getLongitudeAsPrettyString, getLongitudeDegs, getLongitudeRads, getLongitudeStr, getName, getOffsetDistance, getOffsetDown, getOffsetEast, getOffsetFrom, getOffsetNorth, getOffsetSouth, getOffsetUp, getOffsetWest, getPixelDistanceTo, getPointInPixel, getXYAngle, getXYDistanceToLine, getZenith, isLocationEqual, isOffsetEastUsed, isOffsetNorthUsed, isOffsetUpUsed, load, load, LocationTypeTest, makeTotalDepthZero, setAbsoluteDepth, setAzimuth, setDepth, setHeight, setId, setLatitudeDegs, setLatitudeRads, setLatitudeStr, setLocation, setLocationByPixel, setLongitudeDegs, setLongitudeRads, setLongitudeStr, setName, setOffsetDistance, setOffsetDown, setOffsetDown, setOffsetEast, setOffsetEast, setOffsetEastUsed, setOffsetNorth, setOffsetNorth, setOffsetNorthUsed, setOffsetSouth, setOffsetSouth, setOffsetUp, setOffsetUp, setOffsetUpUsed, setOffsetWest, setOffsetWest, setZenith, translateInPixel, translatePosition, translatePosition, valueOfprotected static final java.lang.String DEFAULT_CS_NAME
protected static final java.lang.String DEFAULT_CS_ID
public static final short MIN_DIRECTION
public static final short UNKNOWN_DIRECTION
public static final short NORTH_DIRECTION
public static final short SOUTH_DIRECTION
public static final short EAST_DIRECTION
public static final short WEST_DIRECTION
public static final short UP_DIRECTION
public static final short DOWN_DIRECTION
public static final short MAX_DIRECTION
public static final java.lang.String UNKNOWN_DIRECTION_STRING
public static final java.lang.String NORTH_DIRECTION_STRING
public static final java.lang.String SOUTH_DIRECTION_STRING
public static final java.lang.String EAST_DIRECTION_STRING
public static final java.lang.String WEST_DIRECTION_STRING
public static final java.lang.String UP_DIRECTION_STRING
public static final java.lang.String DOWN_DIRECTION_STRING
protected static final java.lang.String DEFAULT_ROOT_ELEMENT
protected boolean anglesUsed
protected double roll
protected double pitch
protected double yaw
protected short xAxisDirection
protected short yAxisDirection
protected short zAxisDirection
public CoordinateSystem()
public CoordinateSystem(java.lang.String xml)
xml - public void setCoordinateSystem(CoordinateSystem anotherCS)
anotherCS - public boolean load(org.dom4j.Document doc)
load in class LocationTypexml - public double getRoll()
public void setRoll(double rollDegrees)
roll - The roll to set.public void setRoll(double rollDegrees,
boolean useAnglesInXMLOutput)
roll - useAnglesInXMLOutput - updates the isAnglesUsed().public double getPitch()
public void setPitch(double pitchDegrees)
pitch - The pitch to set.public void setPitch(double pitchDegrees,
boolean useAnglesInXMLOutput)
pitch - useAnglesInXMLOutput - updates the isAnglesUsed().public double getYaw()
public void setYaw(double yawDegrees)
yaw - The yaw to set.public void setYaw(double yawDegrees,
boolean useAnglesInXMLOutput)
yaw - useAnglesInXMLOutput - updates the isAnglesUsed().public boolean isAnglesUsed()
public void setAnglesUsed(boolean anglesUsed)
anglesUsed - The anglesUsed to set.public java.lang.String asXML()
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodsasXML in class LocationTypepublic java.lang.String asXML(java.lang.String rootElementName)
XmlOutputMethodsFileUtil.saveToFile(String, String) e afins. Isto porque ao gravar como UTF-8
os caracteres são adulterados guardando por exemplo "é" em 2 caracteres (ou seja pega nos dois caracteres UTF-8 e
transforma-os em 2 UTF-8s).asXML in interface XmlOutputMethodsasXML in class LocationTypepublic org.dom4j.Element asElement()
asElement in interface XmlOutputMethodsasElement in class LocationTypepublic org.dom4j.Element asElement(java.lang.String rootElementName)
asElement in interface XmlOutputMethodsasElement in class LocationTypepublic org.dom4j.Document asDocument()
asDocument in interface XmlOutputMethodsasDocument in class LocationTypepublic org.dom4j.Document asDocument(java.lang.String rootElementName)
asDocument in interface XmlOutputMethodsasDocument in class LocationTypepublic static CoordinateSystem createDefaultCoordinateSystem()
public boolean equals(java.lang.Object obj)
equals in class LocationTypepublic java.lang.String toString()
toString in class LocationTypepublic <L extends LocationType> L getNewAbsoluteLatLonDepth()
LocationTypegetNewAbsoluteLatLonDepth in class LocationTypepublic java.lang.String getClipboardText()
getClipboardText in class LocationTypepublic boolean fromClipboardText(java.lang.String text)
fromClipboardText in class LocationTypepublic static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.