public interface ILspViewListener
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)
and postRender(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)
and postPaintPhase(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 to preRender
and postRender
. 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.Modifier and Type | Method and Description |
---|---|
void |
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.
|
void postInit(ILspView aView, ILcdGLDrawable aGLDrawable)
aView
- the view this listener is belongs toaGLDrawable
- void preDispose(ILspView aView, ILcdGLDrawable aGLDrawable)
aView
- the view this listener is belongs toaGLDrawable
- void preRender(ILspView aView, ILcdGLDrawable aGLDrawable)
aView
- the view this listener belongs toaGLDrawable
- void prePaintPhase(ILspView aView, ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase)
aView
- the view this listener belongs toaGLDrawable
- aPhase
- the phase that is currently paintedvoid postPaintPhase(ILspView aView, ILcdGLDrawable aGLDrawable, TLspPaintPhase aPhase)
aView
- the view this listener belongs toaGLDrawable
- aPhase
- the phase that is currently paintedvoid postRender(ILspView aView, ILcdGLDrawable aGLDrawable)
aView
- the view this listener belongs toaGLDrawable
-