com.supermap.realspace
Class TerrainLayer
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.realspace.TerrainLayer
-
public class TerrainLayer extends InternalHandle
The terrain layer class.This class includes the relevant properties information of the TerrainLayer object.
-
-
Constructor Summary
Constructors Constructor and Description TerrainLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Rectangle2D
getBounds()
Returns the geographic bounds of the data in the terrain layer.java.lang.String
getCaption()
Returns the caption of the terrain layer.double
getLodRangeScale()
Get LOD range ratio in the 3D terrain layer.java.lang.String
getName()
Returns the name of the terrain layer.boolean
isVisible()
Returns whether the terrain layer is visible.void
setLodRangeScale(double lodRangeScale)
Set LOD range scale of the 3D terrain layer.void
setVisible(boolean value)
Sets whether the terrain layer is visible.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the name of the terrain layer.- Returns:
- Returns the name of the terrain layer.
-
getCaption
public java.lang.String getCaption()
Returns the caption of the terrain layer.- Returns:
- Returns the caption of the terrain layer.
-
isVisible
public boolean isVisible()
Returns whether the terrain layer is visible.- Returns:
- True if the terrain layer object is visible; otherwise, false.
-
setVisible
public void setVisible(boolean value)
Sets whether the terrain layer is visible.- Parameters:
value
- the specified layer visibility A boolean specifies whether the terrain layer is visible.
-
getBounds
public Rectangle2D getBounds()
Returns the geographic bounds of the data in the terrain layer.- Returns:
- Returns the geographic bounds of the data in the terrain layer.
-
setLodRangeScale
public void setLodRangeScale(double lodRangeScale)
Set LOD range scale of the 3D terrain layer. If you set the ratio, new LOD distance = original LOD distance * LOD ratio.- Parameters:
lodRangeScale
- Sets the distance scale factor for LOD level switch.
-
getLodRangeScale
public double getLodRangeScale()
Get LOD range ratio in the 3D terrain layer.- Returns:
- The distance scale factor for LOD level switch.
-
-