Package com.luciad.view.lightspeed
Interface ILspViewListener
- All Known Implementing Classes:
ALspViewAdapter
public interface ILspViewListener
Listener that can be added to an
ILspView
to be informed of initialization,
dispose and render events. The methods of this interface are invoked as follows:
postInit(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable)
: when the view's OpenGL context is initialized. Typically this is when the view is repainted for the first time.preDispose(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable)
: when the view is destroyed.preRender(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable)
andpostRender(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable)
: at the start and end of each repaint of the view.prePaintPhase(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable, com.luciad.view.lightspeed.TLspPaintPhase)
andpostPaintPhase(com.luciad.view.lightspeed.ILspView, com.luciad.view.opengl.binding.ILcdGLDrawable, com.luciad.view.lightspeed.TLspPaintPhase)
: during the repaint of the view, between the calls topreRender
andpostRender
. Each pair of calls bounds the handling of a TLspPaintPhase. Depending on the view's current settings, each repaint may contain more than one paint phase.
- Since:
- 2012.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
postInit
(ILspView aView, ILcdGLDrawable aGLDrawable) Called after the view is initialized to initialize this listener.void
postPaintPhase
(ILspView aView, ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase) Called after the view's layers are painted for the given paint phase.void
postRender
(ILspView aView, ILcdGLDrawable aGLDrawable) Called after the view's layers are rendered.void
preDispose
(ILspView aView, ILcdGLDrawable aGLDrawable) Called before the view is disposed to dispose of any resources held by this listener.void
prePaintPhase
(ILspView aView, ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase) Called before the view's layers are painted for the given paint phase.void
preRender
(ILspView aView, ILcdGLDrawable aGLDrawable) Called before the view's layers are rendered.
-
Method Details
-
postInit
Called after the view is initialized to initialize this listener.- Parameters:
aView
- the view this listener is belongs toaGLDrawable
-
-
preDispose
Called before the view is disposed to dispose of any resources held by this listener.- Parameters:
aView
- the view this listener is belongs toaGLDrawable
-
-
preRender
Called before the view's layers are rendered.- Parameters:
aView
- the view this listener belongs toaGLDrawable
-
-
prePaintPhase
Called before the view's layers are painted for the given paint phase. The paint pass indicates whether transparent or opaque objects should be painted, whether objects to be draped or not should be painted, etc. To ensure correct results and to avoid painting multiple times, it is important to consult this mode and to only paint when the proper paint pass is passed.- Parameters:
aView
- the view this listener belongs toaGLDrawable
-aPhase
- the phase that is currently painted
-
postPaintPhase
Called after the view's layers are painted for the given paint phase. The paint phase indicates whether transparent or opaque objects should be painted, whether objects to be draped or not should be painted, etc. To ensure correct results and to avoid painting multiple times, it is important to consult this mode and to only paint when the proper paint phase is passed.- Parameters:
aView
- the view this listener belongs toaGLDrawable
-aPhase
- the phase that is currently painted
-
postRender
Called after the view's layers are rendered.- Parameters:
aView
- the view this listener belongs toaGLDrawable
-
-