|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
dlife.robot.Device
dlife.robot.PseudoDevice
dlife.vision.VideoDisplay
public class VideoDisplay
A VideoDisplay is a wrapper for two BufferedImageWithOverlay objects, one for the raw video and one for the filtered video. It provides access to the two BufferedImageWithOverlay objects so that they can be manipulated independently by the controlling Camera and FilterList objects. This also provides a GUI containing the two video windows, one for the raw video and one for the filtered video.
| Field Summary |
|---|
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
VideoDisplay(int width,
int height)
Construct a new VideoDisplay with two BufferedImageWithOverlay components of the specified size. |
|
| Method Summary | |
|---|---|
protected DeviceDisplay[] |
createGUIObjects()
Get the object that is the GUI for the VideoDisplay. |
BufferedImageWithOverlay |
getFiltered()
Get the BufferedImageWithOverlay object that is being used to display the filtered video. |
BufferedImageWithOverlay |
getRaw()
Get the BufferedImageWithOverlay object that is being used to display the raw video. |
static void |
main(String[] args)
Little test method that pops up a VideoDisplay in a Window for testing purposes. |
void |
readStateFromPseudoDevice()
Does nothing. |
void |
update(Observable o,
Object arg)
The VideoDisplay can be an observer on the VideoSource that it is displaying. |
| Methods inherited from class dlife.robot.PseudoDevice |
|---|
freeze, getRobot, readStateFromRobot, setRobot |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, shutDown, startAutoReadTimer, startUp, stopAutoReadTimer |
| 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 |
| Constructor Detail |
|---|
public VideoDisplay(int width,
int height)
width - the width of the BufferedImageWithOverlay components.height - the height of the BufferedImageWithOverlay components.| Method Detail |
|---|
public void readStateFromPseudoDevice()
readStateFromPseudoDevice in class PseudoDeviceprotected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Devicepublic BufferedImageWithOverlay getRaw()
public BufferedImageWithOverlay getFiltered()
public void update(Observable o,
Object arg)
update in interface Observerpublic static void main(String[] args)
args - none
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||