Class TLspHypsometricShadingLayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.tea.lightspeed.hypsometry.TLspHypsometricShadingLayerBuilder
Builder that creates
ILspEditableStyledLayer
instances that perform hypsometric shading.
To create a hypsometric shading layer you need to specify:
- the elevation data: this can either be the
view's terrain
or a specificelevation model
- the styler: this determines what type of hypsometric computation is performed, and
how the hypsometric values are mapped to colors, the styler should provide
TLspHypsometricShadingStyle
instances
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates and returns a new hypsometric shading layer based on the current parameters of this builder.elevationFromModel
(ILcdModel aModel) Sets the model that is used as the elevation source for the hypsometric calculations.Sets the view's terrain as the elevation source for the hypsometric calculations.filter
(ILcdDynamicFilter aFilter) Sets a filter that will be used to filter objects to prevent them from being painted by the layer.Sets the label of the layer.layerStyle
(TLspLayerStyle aLayerStyle) Set a layer style to be used during the rendering of the layer.layerType
(ILspLayer.LayerType aLayerType) Setting the layer type is not supported.Sets the elevation model that will be used for the hypsometric computations.styler
(TLspPaintRepresentationState aPaintRepresentationState, ILspStyler aStyler) Sets the styler of the hypsometric shading layer.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayerBuilder
getIcon, getLabel, getLayerStyle, getLayerType, getModel, icon
-
Method Details
-
build
Creates and returns a new hypsometric shading layer based on the current parameters of this builder.- Specified by:
build
in classALspLayerBuilder
- Returns:
- a new hypsometric shading layer
-
styler
public TLspHypsometricShadingLayerBuilder styler(TLspPaintRepresentationState aPaintRepresentationState, ILspStyler aStyler) Sets the styler of the hypsometric shading layer. The default styler drapes the raster data on top of the view's terrain. Only theTLspPaintRepresentationState.REGULAR_BODY
affects the style of the layer. The styler should submit:- a
TLspHypsometricShadingStyle
instance: mandatory, this controls the hypsometric shading of the elevation data - a
TLspRasterStyle
instance: this controls some additional styling of the hypsometric shading - a
TLspLineStyle
instance: this controls the style of the outline of the bounds of the data - a
TLspFillStyle
instance: this controls the style of the fill of the bounds of the data
TLspRasterStyle.getStartResolutionFactor()
). Otherwise the bounds of the data are painted instead.- Parameters:
aPaintRepresentationState
- the paint representation stateaStyler
- the styler- Returns:
- this builder
- a
-
newBuilder
- Returns:
- creates a new hypsometric shading layer builder
-
elevationFromModel
Sets the model that is used as the elevation source for the hypsometric calculations.- Parameters:
aModel
- the model- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the specified model does not contain elevation data
-
elevationFromView
Sets the view's terrain as the elevation source for the hypsometric calculations. The model is undefined in this case.- Returns:
- this builder
-
model
Sets the elevation model that will be used for the hypsometric computations.- Overrides:
model
in classALspLayerBuilder
- Parameters:
aModel
- a model- Returns:
- this builder
- Throws:
IllegalArgumentException
- if the specified model does not contain elevation data- See Also:
-
label
Description copied from class:ALspLayerBuilder
Sets the label of the layer. This is a short textual representation for it, often used to represent the layer to end-users. The default value isnull
.- Overrides:
label
in classALspLayerBuilder
- Parameters:
aLabel
- the label- Returns:
- this builder
- See Also:
-
filter
Sets a filter that will be used to filter objects to prevent them from being painted by the layer. No filter is set by default.- Parameters:
aFilter
- the filter- Returns:
this
-
layerType
Setting the layer type is not supported.- Overrides:
layerType
in classALspLayerBuilder
- Parameters:
aLayerType
- the layer type- Returns:
- this builder
- See Also:
-
layerStyle
Description copied from class:ALspLayerBuilder
Set a layer style to be used during the rendering of the layer.TLspLayerStyle
is used to style the layer as a whole. Layer style can for example modify the transparency of a layer. Also, layer style can be modified after building the layer by callingILspLayer.setLayerStyle(TLspLayerStyle)
.- Overrides:
layerStyle
in classALspLayerBuilder
- Parameters:
aLayerStyle
- the layer style. Must not benull
. If you want to set the default layer style, setTLspLayerStyle.newBuilder().build()
- Returns:
- this
- See Also:
-