public static enum TLspRulerController.MeasureMode extends Enum<TLspRulerController.MeasureMode>
TLspRulerController.setMeasureMode(MeasureMode)
Enum Constant and Description |
---|
MEASURE_CARTESIAN
The controller measures the Cartesian distance between points in the world reference of the view.
|
MEASURE_GEODETIC
The controller measures the geodesic (shortest) distance between points.
|
MEASURE_RHUMB
The controller measures the shortest rhumbline distance between points.
|
Modifier and Type | Method and Description |
---|---|
static TLspRulerController.MeasureMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TLspRulerController.MeasureMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TLspRulerController.MeasureMode MEASURE_GEODETIC
The controller measures the geodesic (shortest) distance between points.
A geodesic distance is measured ``as the crow flies''. It is the shortest distance between two points, taken the curvature of the Earth into account. It is also known as a great-circle distance.
The measurements are defined in a default geodetic reference.
public static final TLspRulerController.MeasureMode MEASURE_RHUMB
The controller measures the shortest rhumbline distance between points. A rhumbline distance measurement maintains a constant compass bearing or heading. The azimuth is set to that heading.
Rhumblines are for example used to plan airplane flights or boat voyages.
The measurements are defined in a default geodetic reference.
public static final TLspRulerController.MeasureMode MEASURE_CARTESIAN
The controller measures the Cartesian distance between points in the world reference of the view. A Cartesian distance measurement disregards the curvature of the Earth, and is similar to using an actual ruler or a laser measurement device.
This mode is especially useful in a 3D geocentric reference, where it can be used to evaluate straight line distances between points on the terrain. In 2D, this mode is of limited use, because most projections severely distort those distances
This mode is typically used for measuring smaller-scale objects like trees and buildings.
public static TLspRulerController.MeasureMode[] values()
for (TLspRulerController.MeasureMode c : TLspRulerController.MeasureMode.values()) System.out.println(c);
public static TLspRulerController.MeasureMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null