jAER project on SourceForge

ch.unizh.ini.jaer.chip.cochlea
Class CochleaGramDisplayMethod

java.lang.Object
  extended by net.sf.jaer.graphics.DisplayMethod
      extended by ch.unizh.ini.jaer.chip.cochlea.CochleaGramDisplayMethod
All Implemented Interfaces:
DisplayMethod2D

public class CochleaGramDisplayMethod
extends DisplayMethod
implements DisplayMethod2D

Shows events from stereo cochlea as a rastergram. Time increases to the right and covers one time slice of events as passed to the rendering. Channel increases upwards.

Author:
tobi

Field Summary
 
Fields inherited from class net.sf.jaer.graphics.DisplayMethod
chip, chipCanvas, glu, glut, log, zoom
 
Constructor Summary
CochleaGramDisplayMethod(ChipCanvas c)
          Creates a new instance of CochleaGramDisplayMethod
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
          displays individual events as cochleagram
static void typeColor(javax.media.opengl.GL gl, int type)
          Sets the gl color depending on cochlea cell type
 
Methods inherited from class net.sf.jaer.graphics.DisplayMethod
addAnnotator, getAnnotators, getDescription, getMenuItem, getRenderer, removeAllAnnotators, removeAnnotator, setAnnotators, setMenuItem, setRenderer, setupGL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CochleaGramDisplayMethod

public CochleaGramDisplayMethod(ChipCanvas c)
Creates a new instance of CochleaGramDisplayMethod

Parameters:
c - the canvas we are drawing on
Method Detail

display

public void display(javax.media.opengl.GLAutoDrawable drawable)
displays individual events as cochleagram

Specified by:
display in class DisplayMethod
Parameters:
drawable - the drawable passed in by OpenGL

typeColor

public static void typeColor(javax.media.opengl.GL gl,
                             int type)
Sets the gl color depending on cochlea cell type

Parameters:
gl - the GL context
type - the cell type 0-3

jAER project on SourceForge