public static enum ALspViewXYZWorldTransformation.LocationMode extends Enum<ALspViewXYZWorldTransformation.LocationMode>
viewPoint2WorldSFCT()
and
toolkitPoint2WorldSFCT()
.Enum Constant and Description |
---|
CLOSEST_SURFACE
In this mode,
viewPoint2WorldSFCT() returns the coordinates of
a point on the surface that is closest to the viewer. |
ELLIPSOID
In this mode,
viewPoint2WorldSFCT() returns the coordinates of
a point on the ellipsoid of the geodetic datum of the view's world
reference. |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
static ALspViewXYZWorldTransformation.LocationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ALspViewXYZWorldTransformation.LocationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ALspViewXYZWorldTransformation.LocationMode ELLIPSOID
viewPoint2WorldSFCT()
returns the coordinates of
a point on the ellipsoid of the geodetic datum of the view's world
reference.public static final ALspViewXYZWorldTransformation.LocationMode CLOSEST_SURFACE
viewPoint2WorldSFCT()
returns the coordinates of
a point on the surface that is closest to the viewer. In other
words, the returned coordinates may be on the surface of a domain object
if one is under the specified view coordinates. If no other objects are
under the requested view position, the returned coordinates are the same
as for ELLIPSOID
.Warning: To prevent problems, always call
viewPoint2WorldSFCT()
with this LocationMode
in an ILspViewListener.postRender(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable)
method.
To retrieve terrain heights, refer to
ILspTerrainSupport#getViewDependentHeightProvider
public static ALspViewXYZWorldTransformation.LocationMode[] values()
for (ALspViewXYZWorldTransformation.LocationMode c : ALspViewXYZWorldTransformation.LocationMode.values()) System.out.println(c);
public static ALspViewXYZWorldTransformation.LocationMode 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 nullpublic String toString()
toString
in class Enum<ALspViewXYZWorldTransformation.LocationMode>