Class TLspImageProjectionLayerBuilder
java.lang.Object
com.luciad.view.lightspeed.layer.ALspLayerBuilder
com.luciad.view.lightspeed.layer.imageprojection.TLspImageProjectionLayerBuilder
Builder that creates instances of
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:
- the model: should contain at least one element and have an
ILcdGeocentricReference
orILcdGridReference
as model reference - the styler: should provide
TLspImageProjectionStyle
styles
projector
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.- Since:
- 2012.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a new image projection 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) Sets the layer type of the layer.Sets the model of the layer.styler
(ILspStyler aStyler) Sets the styler to be assigned to the layers created by this builder.Methods inherited from class com.luciad.view.lightspeed.layer.ALspLayerBuilder
getIcon, getLabel, getLayerStyle, getLayerType, getModel, icon
-
Method Details
-
newBuilder
- Returns:
- a new image projection layer builder with the default settings
-
build
Creates a new image projection layer. In order for this layer to display anything in the view, it must have an appropriate styler. OnlyTLspImageProjectionStyle
objects are supported by the created layer. The styler must map the model elements of the layer onto such image projection styles.- Specified by:
build
in classALspLayerBuilder
- Returns:
- a new image projection layer
-
model
Description copied from class:ALspLayerBuilder
Sets the model of the layer. The default value isnull
.- Overrides:
model
in classALspLayerBuilder
- Parameters:
aModel
- a model- Returns:
- this builder
- 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:
-
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:
-
styler
Sets the styler to be assigned to the layers created by this builder. The styler must map each domain object to aTLspImageProjectionStyle
.- Parameters:
aStyler
- the styler for new layers- Returns:
- this builder
-
layerType
Description copied from class:ALspLayerBuilder
Sets the layer type of the layer. The default value isILspLayer.LayerType.EDITABLE
.- Overrides:
layerType
in classALspLayerBuilder
- Parameters:
aLayerType
- the layer type- Returns:
- this builder
- Throws:
UnsupportedOperationException
- this method is not supported for image projection layers- See Also:
-