Package com.luciad.view.lightspeed.layer
Interface ILspPaintableLayer
- All Superinterfaces:
ILcdLayer
,ILcdPropertyChangeSource
,ILcdSelection<Object>
,ILspLayer
,Serializable
- All Known Subinterfaces:
ILspInteractivePaintableLayer
- All Known Implementing Classes:
TLspGXYLayerAdapter
,TLspGXYLayerTreeNodeAdapter
,TLspLayer
,TLspLayerTreeNode
Interface for a layer that can paint itself into an
ILspView
.- Since:
- 2012.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
ILspLayer.LayerType
-
Method Summary
Modifier and TypeMethodDescriptionReturns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.paint
(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView) Renders the specified paint representation of this layer into a view.Methods inherited from interface com.luciad.view.ILcdLayer
clearSelection, fireCollectedSelectionChanges, getIcon, getLabel, getModel, isEditable, isEditableSupported, isSelectable, isSelectableSupported, isVisible, selectObject, setIcon, setLabel, setSelectable
Methods inherited from interface com.luciad.util.ILcdPropertyChangeSource
addPropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.luciad.util.ILcdSelection
addSelectionListener, getSelectedObjects, getSelectionCount, isSelected, removeSelectionListener, selectedObjects
Methods inherited from interface com.luciad.view.lightspeed.layer.ILspLayer
addLayerStateListener, addStatusListener, getBounds, getCurrentViews, getLayerStyle, getLayerType, getMapScaleProvider, getModelXYZWorldTransformation, getPaintRepresentations, invalidate, isEditable, isVisible, isVisible, registerView, removeLayerStateListener, removeStatusListener, setEditable, setEditable, setLayerStyle, setVisible, setVisible, setVisible, unregisterView
-
Method Details
-
paint
TLspPaintProgress paint(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView) Renders the specified paint representation of this layer into a view. The view invokes this method for each enabled paint representation and supplies anILcdGLDrawable
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 suppliedTLspPaintPhase
. This method returns aTLspPaintProgress
object to indicate whether the repaint was entirely finished or not. This might not be the case if thepaint()
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 thepaint()
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.- Parameters:
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 rendered- Returns:
- progress information describing the painting operation
-
getRequiredOpenGLProfile
TLspOpenGLProfile getRequiredOpenGLProfile()Returns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.- Returns:
- a
TLspGLProfile
-