|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FrameAnnotater
An EventFilter2D should implement FrameAnnotator in order to render annotations onto the ChipCanvas during processing.
A class implements this interface in order to graphically annotate rendered frames. The class can directly set RGB pixel values for the rendered image. (This does not allow drawing e.g. with Java2D, however.)
A second method of annotation was added later to allow direct Graphics2D annotation. A class adds itself to the RetinaCanvasInterface to be called to render itself after the events have been rendered.
A third method was added for OpenGL rendering of annotations. If rendering is done with Java2D in the OpenGL drawable, it is not always done synchronously, and so this method was added that is called just after all other OpenGL frame buffer rendering.
Method Summary | |
---|---|
void |
annotate(float[][][] frame)
Deprecated. use the openGL annotation - this method will be removed in the future. |
void |
annotate(javax.media.opengl.GLAutoDrawable drawable)
Each annotator enters annotate with graphics context current, in coordinates with pixel 0,0 in LL corner (note opposite from Java2D) and pixel spacing 1 unit after the scaling transform (which is already active). |
void |
annotate(java.awt.Graphics2D g)
Deprecated. use the openGL annotation - this method will probably be removed in the future. |
boolean |
isAnnotationEnabled()
|
void |
setAnnotationEnabled(boolean yes)
|
Method Detail |
---|
void setAnnotationEnabled(boolean yes)
boolean isAnnotationEnabled()
void annotate(float[][][] frame)
frame
- the RGB pixel information. First dimension is Y, second is X, third is RGBvoid annotate(java.awt.Graphics2D g)
g
- the Graphics2D contextvoid annotate(javax.media.opengl.GLAutoDrawable drawable)
GL gl = drawable.getGL(); gl.glBegin(GL.GL_LINES); gl.glColor3f(.5f, .5f, 0); gl.glVertex2f(0, 0); gl.glVertex2f(getSizeX() - 1, getSizeY() - 1); gl.glEnd();
drawable
- the OpenGL drawable components, e.g., GLCanvas
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |