jAER project on SourceForge

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

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

public class RollingCochleaGramDisplayMethod
extends DisplayMethod
implements DisplayMethod2D

Shows events from stereo cochlea as a rastergram. Each packet is painted to the right of previous ones. The screen is used as the memory. When the time reaches the right side, it resets to the left and the screen is cleared. The timescale is set by the ChipRenderer colorScale, which the user can set with the UP/DOWN arrows buttons. It is set so that the entire width of the screen is a certain number of seconds.

Author:
tobi

Field Summary
 
Fields inherited from class net.sf.jaer.graphics.DisplayMethod
chip, chipCanvas, glu, glut, log, zoom
 
Constructor Summary
RollingCochleaGramDisplayMethod(ChipCanvas c)
          Creates a new instance of CochleaGramDisplayMethod
 
Method Summary
 void display(javax.media.opengl.GLAutoDrawable drawable)
          displays individual events as cochleagram
 
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

RollingCochleaGramDisplayMethod

public RollingCochleaGramDisplayMethod(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

jAER project on SourceForge