jAER project on SourceForge

net.sf.jaer.chip
Class Chip2D

java.lang.Object
  extended by java.util.Observable
      extended by net.sf.jaer.chip.Chip
          extended by net.sf.jaer.chip.Chip2D
Direct Known Subclasses:
AEChip, Motion18

public class Chip2D
extends Chip

A Chip with a 2D (or 1D) array of pixels.

Author:
tobi

Field Summary
protected  ChipCanvas canvas
           
protected  FilterFrame filterFrame
          the filter frame holding filters that can be applied to the events
protected  int numCellTypes
           
protected  int sizeX
           
protected  int sizeY
           
 
Fields inherited from class net.sf.jaer.chip.Chip
biasgen, hardwareInterface, log, name
 
Constructor Summary
Chip2D()
          Creates a new instance of Chip2D
 
Method Summary
 ChipCanvas getCanvas()
          The ChipCanvas that renders this Chip2D's output.
 int getMaxSize()
           
 int getMinSize()
           
 int getNumCells()
          Total number of cells on the chip; sizeX*sizeY*numCellTypes.
 int getNumPixels()
          Number of pixels; sizeX*sizeY
 float getPixelHeightUm()
           
 float getPixelWidthUm()
           
 Chip2DRenderer getRenderer()
           
 int getSizeX()
          Size of chip in x (horizontal) direction.
 int getSizeY()
          Size of chip in y (vertical) direction.
 void setCanvas(ChipCanvas canvas)
          sets the ChipCanvas for this AEChip.
 void setName(java.lang.String name)
          Sets the name of the chip and sets the FilterFrame (if there is one) with a new title
 void setPixelHeightUm(float pixelHeightUm)
           
 void setPixelWidthUm(float pixelWidthUm)
           
 void setRenderer(Chip2DRenderer renderer)
           
 void setSizeX(int sizeX)
          Updates the chip size and calls Observers with the string "sizeX".
 void setSizeY(int sizeY)
          Updates the chip size and calls Observers with the string "sizeY".
 
Methods inherited from class net.sf.jaer.chip.Chip
getBiasgen, getDescription, getHardwareInterface, getLastData, getName, getPreferredHardwareInterface, getPrefs, getRemoteControl, setBiasgen, setHardwareInterface, setLastData, setPreferredHardwareInterface, setPrefs, setRemoteControl
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sizeX

protected int sizeX

sizeY

protected int sizeY

numCellTypes

protected int numCellTypes

canvas

protected ChipCanvas canvas

filterFrame

protected FilterFrame filterFrame
the filter frame holding filters that can be applied to the events

Constructor Detail

Chip2D

public Chip2D()
Creates a new instance of Chip2D

Method Detail

getSizeX

public int getSizeX()
Size of chip in x (horizontal) direction.

Returns:
number of pixels.

setSizeX

public void setSizeX(int sizeX)
Updates the chip size and calls Observers with the string "sizeX".

Parameters:
sizeX - the horizontal dimension

getSizeY

public int getSizeY()
Size of chip in y (vertical) direction.

Returns:
number of pixels.

setSizeY

public void setSizeY(int sizeY)
Updates the chip size and calls Observers with the string "sizeY".

Parameters:
sizeY - the vertical dimension

getMaxSize

public int getMaxSize()

getMinSize

public int getMinSize()

getNumCells

public int getNumCells()
Total number of cells on the chip; sizeX*sizeY*numCellTypes.

Returns:
number of cells.
See Also:
getNumPixels()

getNumPixels

public int getNumPixels()
Number of pixels; sizeX*sizeY

Returns:
number of pixels.
See Also:
getNumCells()

getCanvas

public ChipCanvas getCanvas()
The ChipCanvas that renders this Chip2D's output.

Returns:
the ChipCanvas.

setCanvas

public void setCanvas(ChipCanvas canvas)
sets the ChipCanvas for this AEChip. Notifies observers (e.g. EventFilter2D) of this chip with the new ChipCanvas object in case they need to do anything in response, e.g. add FrameAnnotater.


setName

public void setName(java.lang.String name)
Sets the name of the chip and sets the FilterFrame (if there is one) with a new title

Overrides:
setName in class Chip

getPixelWidthUm

public float getPixelWidthUm()

setPixelWidthUm

public void setPixelWidthUm(float pixelWidthUm)

getPixelHeightUm

public float getPixelHeightUm()

setPixelHeightUm

public void setPixelHeightUm(float pixelHeightUm)

getRenderer

public Chip2DRenderer getRenderer()

setRenderer

public void setRenderer(Chip2DRenderer renderer)

jAER project on SourceForge