Enum Class TLspRulerController.MeasureMode
- All Implemented Interfaces:
Serializable
,Comparable<TLspRulerController.MeasureMode>
,Constable
- Enclosing class:
TLspRulerController
- Since:
- 2012.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe controller measures the Cartesian distance between points in the world reference of the view.The controller measures the geodesic (shortest) distance between points.The controller measures the shortest rhumbline distance between points. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TLspRulerController.MeasureMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
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.
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-