simbad.sim
Class Eye

java.lang.Object
  extended bysimbad.sim.BaseObject
      extended bysimbad.sim.Device
          extended bysimbad.sim.SensorDevice
              extended bysimbad.sim.Eye
Direct Known Subclasses:
CameraSensor, LightSensor

public class Eye
extends SensorDevice


Nested Class Summary
 class Eye.EyeJPanel
           
 
Method Summary
 void copyVisionImage(java.awt.image.BufferedImage bim)
          Request to fill a bufferedImage with last capture.
 void copyVisionImage(SensorMatrix matrix)
          Request to fill a SensorMatrix with last capture.
 java.awt.image.BufferedImage createCompatibleImage()
          for allocating a working copy of the vision image
 SensorMatrix createCompatibleSensorMatrix()
          for allocating a SensorMatrix compabtible with device dimensions
 javax.swing.JPanel createInspectorPanel()
          Creates the panel associated to the device.
 int getImageHeight()
          Returns the height of captured image.
 int getImageWidth()
          Returns the width of captured image.
 
Methods inherited from class simbad.sim.Device
attach, detach, getCanBeTraversed, getName, getRotationTransform, getTranslationTransform, getUpdatePerSecond, rotateY, setCanBeTraversed, setColor, setUpdateOnEachFrame, setUpdatePerSecond, translateTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCompatibleImage

public final java.awt.image.BufferedImage createCompatibleImage()
for allocating a working copy of the vision image


createCompatibleSensorMatrix

public final SensorMatrix createCompatibleSensorMatrix()
for allocating a SensorMatrix compabtible with device dimensions


copyVisionImage

public final void copyVisionImage(java.awt.image.BufferedImage bim)
Request to fill a bufferedImage with last capture.

Parameters:
bim - - buffered image to be filled.

copyVisionImage

public final void copyVisionImage(SensorMatrix matrix)
Request to fill a SensorMatrix with last capture.

Parameters:
matrix - - to be filled

createInspectorPanel

public javax.swing.JPanel createInspectorPanel()
Description copied from class: Device
Creates the panel associated to the device. This panel can be inserted in the inspector window for monitoring.

Overrides:
createInspectorPanel in class Device
Returns:
the JPanel. null if no panel can be associated

getImageWidth

public int getImageWidth()
Returns the width of captured image.

Returns:
width in pixels

getImageHeight

public int getImageHeight()
Returns the height of captured image.

Returns:
height in pixels