public interface ILspPaintableLayer extends ILspLayer
ILspView
.ILspLayer.LayerType
Modifier and Type | Method and Description |
---|---|
TLspOpenGLProfile |
getRequiredOpenGLProfile()
Returns the minimum required OpenGL profile that a view must support in
order to be compatible with this layer.
|
TLspPaintProgress |
paint(ILcdGLDrawable aGLDrawable,
TLspPaintPhase aPhase,
TLspPaintRepresentationState aPaintRepresentationState,
ILspView aView)
Renders the specified paint representation of this layer into a view.
|
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
TLspPaintProgress paint(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView)
ILcdGLDrawable
as an
access point to the OpenGL API. In addition to rendering the individual paint representations,
views may also perform multiple rendering passes to support things such as transparency
rendering or terrain of data on a 3D terrain. To this effect, the layer must honor the
supplied TLspPaintPhase
.
This method returns a TLspPaintProgress
object to indicate whether the repaint
was entirely finished or not. This might not be the case if the paint()
method scheduled
some asynchronous processing task, whose result is needed to complete the paint operation. For
instance, if the layer loads data in the background on demand, it may return early rather than
letting the paint()
method block until the data is available. In this case the view is
left incomplete, but additional repaints of the view will incrementally become more
up-to-date,
and the progress objects retrieved after each new repaint can be used to provide progress
information to the user.aGLDrawable
- the access point to OpenGLaPhase
- describes the phase that the view repaint process is
currently inaPaintRepresentationState
- identifies which paint representation state the layer should
render into the viewaView
- the view into which the layer is being renderedTLspOpenGLProfile getRequiredOpenGLProfile()
TLspGLProfile