public class TLspImageProjectionLayerBuilder extends ALspLayerBuilder
ILspImageProjectionLayer
.
This can for example be used to visualize the video feed recorded by an Unmanned Areal Vehicle on
the Earth.
To create an image projection layer you need to specify:
ILcdGeocentricReference
or ILcdGridReference
as model referenceTLspImageProjectionStyle
stylesprojector
should be specified in model coordinates.
The domain object in the model can be chosen freely. The TLspImageProjectionStyle
determines both what image is projected and the position and orientation of the projector. Since
the styler maps a particular domain object to styles, you must have at least one element
in the model in order to paint a projected image.TLspImageProjectionStyle
,
ILspImageProjector
Modifier and Type | Method and Description |
---|---|
ILspImageProjectionLayer |
build()
Creates a new image projection layer.
|
TLspImageProjectionLayerBuilder |
label(String aLabel)
Sets the label of the layer.
|
TLspImageProjectionLayerBuilder |
layerStyle(TLspLayerStyle aLayerStyle)
Set a layer style to be used during the rendering of the layer.
|
TLspImageProjectionLayerBuilder |
layerType(ILspLayer.LayerType aLayerType)
Sets the layer type of the layer.
|
TLspImageProjectionLayerBuilder |
model(ILcdModel aModel)
Sets the model of the layer.
|
static TLspImageProjectionLayerBuilder |
newBuilder() |
TLspImageProjectionLayerBuilder |
styler(ILspStyler aStyler)
Sets the styler to be assigned to the layers created by this builder.
|
getIcon, getLabel, getLayerStyle, getLayerType, getModel, icon
public static TLspImageProjectionLayerBuilder newBuilder()
public ILspImageProjectionLayer build()
TLspImageProjectionStyle
objects are supported by the created
layer. The styler must map the model elements of the layer onto such
image projection styles.build
in class ALspLayerBuilder
public TLspImageProjectionLayerBuilder model(ILcdModel aModel)
ALspLayerBuilder
null
.model
in class ALspLayerBuilder
aModel
- a modelILcdLayer.getModel()
public TLspImageProjectionLayerBuilder label(String aLabel)
ALspLayerBuilder
null
.label
in class ALspLayerBuilder
aLabel
- the labelILcdLayer.getLabel()
public TLspImageProjectionLayerBuilder 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)
public TLspImageProjectionLayerBuilder styler(ILspStyler aStyler)
TLspImageProjectionStyle
.aStyler
- the styler for new layerspublic TLspImageProjectionLayerBuilder layerType(ILspLayer.LayerType aLayerType)
ALspLayerBuilder
ILspLayer.LayerType.EDITABLE
.layerType
in class ALspLayerBuilder
aLayerType
- the layer typeUnsupportedOperationException
- this method is not supported for image projection layersILspLayer.getLayerType()