|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread biocell.BioThread devs.visionpackage.org.cmotch.framegrabber.FrameGrabber
public class FrameGrabber
Frame grabber class
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
FrameGrabber()
Constructor |
|
FrameGrabber(java.lang.String videoPropFile)
Constructor |
Method Summary | |
---|---|
void |
controllerUpdate(javax.media.ControllerEvent ce)
Method called when a controller event is received (implements ControllerListener interface) |
java.awt.image.BufferedImage |
getBufferedImage()
Get an image from the camera as a BufferedImage |
java.awt.Image |
getImage()
Get an image from the camera as an AWT Image object |
void |
run()
Run method for Thread class |
Methods inherited from class biocell.BioThread |
---|
getCurrentmood, getMoodParam, getstate, setMood, stepEnergy |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FrameGrabber() throws FrameGrabberException
FrameGrabberException
- If we can't start up the camerapublic FrameGrabber(java.lang.String videoPropFile) throws FrameGrabberException
videoPropFile
- The name of the video properties file
FrameGrabberException
- If we can't start up the cameraMethod Detail |
---|
public java.awt.Image getImage()
public java.awt.image.BufferedImage getBufferedImage()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void controllerUpdate(javax.media.ControllerEvent ce)
controllerUpdate
in interface javax.media.ControllerListener
ce
- The controller event
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |