public interface ILspPaintableLayer extends ILspLayer
|Modifier and Type||Method and Description|
Returns the minimum required OpenGL profile that a view must support in order to be compatible with this layer.
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
TLspPaintProgress paint(ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase, TLspPaintRepresentationState aPaintRepresentationState, ILspView aView)
ILcdGLDrawableas 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
TLspPaintProgressobject 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 OpenGL
aPhase- describes the phase that the view repaint process is currently in
aPaintRepresentationState- identifies which paint representation state the layer should render into the view
aView- the view into which the layer is being rendered