public class TLspHypsometricShadingLayerBuilder extends ALspLayerBuilder
ILspEditableStyledLayer
instances that perform hypsometric shading.
To create a hypsometric shading layer you need to specify:
view's terrain
or
a specific elevation model
TLspHypsometricShadingStyle
instancesModifier and Type | Method and Description |
---|---|
ILspEditableStyledLayer |
build()
Creates and returns a new hypsometric shading layer based on the current parameters of this
builder.
|
TLspHypsometricShadingLayerBuilder |
elevationFromModel(ILcdModel aModel)
Sets the model that is used as the elevation source for the hypsometric calculations.
|
TLspHypsometricShadingLayerBuilder |
elevationFromView()
Sets the view's terrain as the elevation source for the hypsometric calculations.
|
TLspHypsometricShadingLayerBuilder |
filter(ILcdDynamicFilter aFilter)
Sets a filter that will be used to filter objects to prevent them from
being painted by the layer.
|
TLspHypsometricShadingLayerBuilder |
label(String aLabel)
Sets the label of the layer.
|
TLspHypsometricShadingLayerBuilder |
layerStyle(TLspLayerStyle aLayerStyle)
Set a layer style to be used during the rendering of the layer.
|
TLspHypsometricShadingLayerBuilder |
layerType(ILspLayer.LayerType aLayerType)
Setting the layer type is not supported.
|
TLspHypsometricShadingLayerBuilder |
model(ILcdModel aModel)
Sets the elevation model that will be used for the hypsometric computations.
|
static TLspHypsometricShadingLayerBuilder |
newBuilder() |
TLspHypsometricShadingLayerBuilder |
styler(TLspPaintRepresentationState aPaintRepresentationState,
ILspStyler aStyler)
Sets the styler of the hypsometric shading layer.
|
getIcon, getLabel, getLayerStyle, getLayerType, getModel, icon
public ILspEditableStyledLayer build()
build
in class ALspLayerBuilder
public TLspHypsometricShadingLayerBuilder styler(TLspPaintRepresentationState aPaintRepresentationState, ILspStyler aStyler)
TLspPaintRepresentationState.REGULAR_BODY
affects the style of the layer.
The styler should submit:
TLspHypsometricShadingStyle
instance: mandatory, this controls the hypsometric shading of the elevation dataTLspRasterStyle
instance: this controls some additional styling of the hypsometric shadingTLspLineStyle
instance: this controls the style of the outline of the bounds of
the dataTLspFillStyle
instance: this controls the style of the fill of the bounds of
the dataTLspRasterStyle.getStartResolutionFactor()
).
Otherwise the bounds of the data are painted instead.aPaintRepresentationState
- the paint representation stateaStyler
- the stylerpublic static TLspHypsometricShadingLayerBuilder newBuilder()
public TLspHypsometricShadingLayerBuilder elevationFromModel(ILcdModel aModel)
aModel
- the modelIllegalArgumentException
- if the specified model does not contain elevation datapublic TLspHypsometricShadingLayerBuilder elevationFromView()
public TLspHypsometricShadingLayerBuilder model(ILcdModel aModel)
model
in class ALspLayerBuilder
aModel
- a modelIllegalArgumentException
- if the specified model does not contain elevation dataILcdLayer.getModel()
public TLspHypsometricShadingLayerBuilder label(String aLabel)
ALspLayerBuilder
null
.label
in class ALspLayerBuilder
aLabel
- the labelILcdLayer.getLabel()
public TLspHypsometricShadingLayerBuilder filter(ILcdDynamicFilter aFilter)
aFilter
- the filterthis
public TLspHypsometricShadingLayerBuilder layerType(ILspLayer.LayerType aLayerType)
layerType
in class ALspLayerBuilder
aLayerType
- the layer typeILspLayer.getLayerType()
public TLspHypsometricShadingLayerBuilder layerStyle(TLspLayerStyle aLayerStyle)
ALspLayerBuilder
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 calling
ILspLayer.setLayerStyle(TLspLayerStyle)
.layerStyle
in class ALspLayerBuilder
aLayerStyle
- the layer style. Must not be null
. If you want to set the default layer style, set TLspLayerStyle.newBuilder().build()
ILspLayer.getLayerStyle()
,
ILspLayer.setLayerStyle(TLspLayerStyle)