roomba.roombanetwork.services.image.isight
Class ISight

java.lang.Object
  extended by roomba.roombanetwork.services.image.isight.ISight
All Implemented Interfaces:
Camera

public class ISight
extends java.lang.Object
implements Camera

Class to connect to an ISight camera and grab an image from it

Author:
Drew Housten

Constructor Summary
ISight()
          Constructor - connects to the iSight camera
 
Method Summary
 void disconnect()
          Disconnects the camera
 int getHeight()
          Gets the height of the image that is provided
 java.awt.Image getLatestImage()
          Gets the latest image that was pulled from the camera
 int getWidth()
          Gets the width of the image that is provided
 boolean isInitialized()
          Indicates if the camera has been started and initialized properly
 void reconnect()
          Reconnects the camera
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISight

public ISight()
Constructor - connects to the iSight camera

Method Detail

getLatestImage

public java.awt.Image getLatestImage()
Gets the latest image that was pulled from the camera

Specified by:
getLatestImage in interface Camera
Returns:
The latest image

getWidth

public int getWidth()
Gets the width of the image that is provided

Specified by:
getWidth in interface Camera
Returns:
The width of the image

getHeight

public int getHeight()
Gets the height of the image that is provided

Specified by:
getHeight in interface Camera
Returns:
The height of the image

disconnect

public void disconnect()
Disconnects the camera

Specified by:
disconnect in interface Camera

reconnect

public void reconnect()
Reconnects the camera

Specified by:
reconnect in interface Camera

isInitialized

public boolean isInitialized()
Indicates if the camera has been started and initialized properly

Specified by:
isInitialized in interface Camera
Returns:
true iff the camera has been initialized