public interface ILspImageProjectionLayer extends ILspEditableStyledLayer
ILspView
. Images are cast by an
ILspImageProjector
, which is defined in the geographic reference
of this layer's model. Typically, this will be a geocentric reference. You can use
the builder
to create an image projection layer.
The only new methods introduced by this interface are
projectPoint(com.luciad.shape.ILcdPoint, ILspImageProjector, com.luciad.view.lightspeed.ILspView)
and
unProjectPoint(ILcdPoint, ILspImageProjector, ILspView)
.
They can be used to transform normalized coordinates within a projected
image to the geographic coordinates where that point in the image would
be projected and vice versa.
This interface is subject to change. Hence you should never implement it yourself. Instead you should use
the layer builder
to create an instance.ILspLayer.LayerType
Modifier and Type | Method and Description |
---|---|
ILcdPoint |
projectPoint(ILcdPoint aPoint,
ILspImageProjector aProjector,
ILspView aView)
Projects a point onto the 3D terrain.
|
ILcdPoint |
unProjectPoint(ILcdPoint aPoint,
ILspImageProjector aProjector,
ILspView aView)
Un-projects a point from the terrain onto the projector.
|
setStyler
getStyler
addLayerStateListener, addStatusListener, getBounds, getCurrentViews, getLayerStyle, getLayerType, getMapScaleProvider, getModelXYZWorldTransformation, getPaintRepresentations, invalidate, isEditable, isVisible, isVisible, registerView, removeLayerStateListener, removeStatusListener, setEditable, setEditable, setLayerStyle, setVisible, setVisible, setVisible, unregisterView
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setIcon, setLabel, setSelectable
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
addPropertyChangeListener, removePropertyChangeListener
ILcdPoint projectPoint(ILcdPoint aPoint, ILspImageProjector aProjector, ILspView aView)
aPoint
- the 2D point on the projector, the point at (0, 0)
is in the
upper left corner of the projector and the point at (1, 1)
is in
the lower right corner of the projector.aProjector
- the image projectoraView
- the viewnull
if the point
is not projected on the terrainILcdPoint unProjectPoint(ILcdPoint aPoint, ILspImageProjector aProjector, ILspView aView)
(0, 0)
is in the upper left corner of the projector(1, 1)
is in the lower right corner of the projectorz
is in [0,1]
where 0 is closest and 1 is furthest awayaPoint
- the 3D point on the terrain in model coordinatesaProjector
- the image projectoraView
- the viewnull
if the point not projected on