|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimbad.sim.BaseObject
simbad.sim.Device
simbad.sim.SensorDevice
simbad.sim.Eye
public class Eye
Nested Class Summary | |
---|---|
class |
Eye.EyeJPanel
|
private class |
Eye.OffScreenCanvas3D
An off screen Canvas3D for offscreen rendering of a 3D scene - call render to ask rendering |
Field Summary | |
---|---|
protected int |
imageHeight
|
protected int |
imageWidth
|
private Eye.OffScreenCanvas3D |
offscreenCanvas3D
|
protected int[] |
tempRGBABuffer
|
private javax.media.j3d.View |
view
|
private javax.media.j3d.ViewPlatform |
viewPlatform
|
(package private) java.awt.image.BufferedImage |
visionImage
|
Fields inherited from class simbad.sim.BaseObject |
---|
black, branchGroup, canBeTraversed, compilable, detachedFromSceneGraph, group, localBounds, material, rotation, rotationGroup, translation, translationGroup, white, world |
Constructor Summary | |
---|---|
Eye(float radius,
int imageWidth,
int imageHeight)
|
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. |
(package private) void |
create3D(float radius)
|
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. |
(package private) void |
createViewPlatform()
|
int |
getImageHeight()
Returns the height of captured image. |
int |
getImageWidth()
Returns the width of captured image. |
protected void |
update()
Called by simulator to render a new vision image |
Methods inherited from class simbad.sim.Device |
---|
getName, getOwner, getUpdatePerSecond, reset, setName, setOwner, setUpdateOnEachFrame, setUpdatePerSecond, update |
Methods inherited from class simbad.sim.BaseObject |
---|
addChild, addChild, attach, compile, create3D, detach, getBounds, getCanBeTraversed, getGroup, getNode, getRotationTransform, getRotationTransformGroup, getTranslation, getTranslationTransform, getTranslationTransform, resetTransforms, rotateY, setBounds, setCanBeTraversed, setColor, setWorld, translateTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private javax.media.j3d.ViewPlatform viewPlatform
private javax.media.j3d.View view
private Eye.OffScreenCanvas3D offscreenCanvas3D
protected int[] tempRGBABuffer
java.awt.image.BufferedImage visionImage
protected int imageWidth
protected int imageHeight
Constructor Detail |
---|
Eye(float radius, int imageWidth, int imageHeight)
Method Detail |
---|
void create3D(float radius)
void createViewPlatform()
public final java.awt.image.BufferedImage createCompatibleImage()
public final SensorMatrix createCompatibleSensorMatrix()
public final void copyVisionImage(java.awt.image.BufferedImage bim)
bim
- - buffered image to be filled.public final void copyVisionImage(SensorMatrix matrix)
matrix
- - to be filledprotected void update()
update
in class Device
public javax.swing.JPanel createInspectorPanel()
Device
createInspectorPanel
in class Device
public int getImageWidth()
public int getImageHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |