public static enum ILspWorldElevationStyle.ElevationMode extends Enum<ILspWorldElevationStyle.ElevationMode>
Enum Constant and Description |
---|
ABOVE_ELLIPSOID
All objects are painted using their own absolute elevation, as specified
in the domain objects.
|
ABOVE_TERRAIN
All objects are painted above the terrain.
|
OBJECT_DEPENDENT
The object type and the object geometry determine which of the other three elevation modes is most suitable.
|
ON_TERRAIN
All objects are draped over a terrain.
|
Modifier and Type | Method and Description |
---|---|
static ILspWorldElevationStyle.ElevationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ILspWorldElevationStyle.ElevationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ILspWorldElevationStyle.ElevationMode ABOVE_ELLIPSOID
public static final ILspWorldElevationStyle.ElevationMode ON_TERRAIN
All objects are draped over a terrain. Any elevation provided in the objects themselves is ignored. In 2D views, this mode has no effect.
Draping allows you to paint directly onto a terrain. It is used in 3D to ensure that the objects follow the surface of the terrain. Anything can be painted in this mode, but it makes the most sense for objects that do not have an elevation and which are not drawn in alignment with the screen.
public static final ILspWorldElevationStyle.ElevationMode ABOVE_TERRAIN
All objects are painted above the terrain. This means that the elevation
of the objects themselves is added to the elevation of the terrain. In 2D
views, this mode has no effect. This mode is currently supported for
TLspIconStyle
, TLspLineStyle
and TLspFillStyle
.
TLspIconStyle
, or add a TLspViewDisplacementStyle
, so that an icon can be moved above the terrain dynamically, depending on the view angle.
public static final ILspWorldElevationStyle.ElevationMode OBJECT_DEPENDENT
The object type and the object geometry determine which of the other three elevation modes is most suitable.
This is currently the default elevation mode applied to stylers and most styles.
It is only available for TLspIconStyle
, TLspLineStyle
and TLspFillStyle
.
Typically this elevation mode is used when styling data from an input format with potentially diverse types of objects: streets, rivers, and icons, for example. If you are using a:
TLspFillStyle
or a TLspLineStyle
: an OBJECT_DEPENDENT
elevation mode results in objects draped on the terrain if the objects do not have elevation themselves.
If the objects have elevation, they are painted ABOVE_ELLIPSOID
.
TLspIconStyle
: the icon objects are painted ABOVE_TERRAIN
if they do not have any elevation themselves, meaning that their Z value is zero.
The point is painted ABOVE_ELLIPSOID
if it does have elevation.
If you know up front what type of objects must be visualized, choose one of the other, more specific elevation modes.
Base your choice on the type of input data.
If you want to display street data for example, choose the ON_TERRAIN
elevation mode.
public static ILspWorldElevationStyle.ElevationMode[] values()
for (ILspWorldElevationStyle.ElevationMode c : ILspWorldElevationStyle.ElevationMode.values()) System.out.println(c);
public static ILspWorldElevationStyle.ElevationMode 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