Class ProjectedImageryLayer
- All Implemented Interfaces:
AutoCloseable
A ProjectedImageryLayer takes an IProjectedImageryModel and projects the imagery of its selected projections onto the map from the virtual camera position and orientation described by each projection. The model may hold a single projection (for example a live video camera) or many (for example a set of panoramas).
Use ProjectedImageryLayer#newBuilder to create an instance.
The layer subscribes to the model as long as it is part of the map's layer list. Removing the layer from the map unsubscribes it from the model, so that the model can safely outlive the layer.
Related article: Projecting images, video and panoramas onto the map
- Since:
- 2026.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilderfor creating aProjectedImageryLayer. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringProperty name for theLayerEventthat is fired as a result of changing the layer's selected projections.static final StringProperty name for theLayerEventthat is fired as a result of changing the layer's style.Fields inherited from class com.luciad.layers.Layer
PropertyBusy, PropertyTitle, PropertyVisible -
Method Summary
Modifier and TypeMethodDescriptionReturns a new builder based on this layer instance.voidclose()booleanprotected voidfinalize()getModel()Returns the projected imagery model associated with this layer.List<@NotNull SelectedProjection> Returns the projections to display, each with its blend weight.getStyle()Returns the style used for painting this layer.inthashCode()Returns a new builder for creating aProjectedImageryLayer.voidsetSelectedProjections(List<@NotNull SelectedProjection> projections) Sets the projections to display, each with its blend weight.voidsetStyle(ProjectedImageryStyle style) Sets the style used for painting this layer.Methods inherited from class com.luciad.layers.Layer
addObserver, getId, getTitle, isBusy, isVisible, removeObserver, setTitle, setVisible
-
Field Details
-
PropertyStyle
Property name for theLayerEventthat is fired as a result of changing the layer's style.- See Also:
-
PropertySelectedProjections
Property name for theLayerEventthat is fired as a result of changing the layer's selected projections.- See Also:
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classLayer
-
newBuilder
Returns a new builder for creating aProjectedImageryLayer.- Returns:
- a new builder.
-
asBuilder
Returns a new builder based on this layer instance.You can use this builder, for example, to create a copy of this layer.
Note that observers will not be transferred to a new layer.
- Returns:
- a new builder based on this layer instance.
-
getModel
Returns the projected imagery model associated with this layer.- Returns:
- the projected imagery model associated with this layer.
-
getStyle
Returns the style used for painting this layer.- Returns:
- the style used for painting this layer.
-
setStyle
Sets the style used for painting this layer.A
LayerEventwith the property name propertyStyle is delivered to the observers.- Parameters:
style- the new projected imagery style.
-
getSelectedProjections
Returns the projections to display, each with its blend weight.Several projections may be displayed at once so that, for example, a navigation controller can cross-fade between neighbors by animating the weights. An empty list displays nothing.
- Returns:
- the projections to display, each with its blend weight.
-
setSelectedProjections
Sets the projections to display, each with its blend weight.If the new projections differ from the current ones, a
LayerEventwith the property name propertySelectedProjections is delivered to the observers.- Parameters:
projections- the projections to display.
-
hashCode
public int hashCode() -
equals
-