public abstract class AbstractCamera extends AbstractModelObject implements Camera
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractCamera.ListenerEntry |
Camera.LookingPropertySheetHolder.PropertySheet| Modifier and Type | Field and Description |
|---|---|
protected Head |
head |
protected java.lang.Integer |
height |
protected java.lang.String |
id |
protected java.util.Set<AbstractCamera.ListenerEntry> |
listeners |
protected Camera.Looking |
looking |
protected java.lang.String |
name |
protected long |
settleTimeMs |
protected Location |
unitsPerPixel |
protected VisionProvider |
visionProvider |
protected java.lang.Integer |
width |
propertyChangeSupport| Constructor and Description |
|---|
AbstractCamera() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
broadcastCapture(java.awt.image.BufferedImage img) |
Head |
getHead()
Gets the Head that this HeadMountable is attached to.
|
java.lang.String |
getId() |
Camera.Looking |
getLooking()
Get the direction the Camera is looking.
|
java.lang.String |
getName() |
javax.swing.Icon |
getPropertySheetHolderIcon() |
long |
getSettleTimeMs()
Get the time in milliseconds that the Camera should be allowed to settle before images are
captured for vision operations.
|
Location |
getUnitsPerPixel()
The number of X and Y units per pixel this camera shows when in perfect focus.
|
VisionProvider |
getVisionProvider()
Get the VisionProvider that is attached to this Camera, if any.
|
void |
moveTo(Location location) |
void |
moveToSafeZ() |
void |
setHead(Head head)
Set the Head that this HeadMountable is attached to.
|
void |
setLooking(Camera.Looking looking) |
void |
setName(java.lang.String name) |
void |
setSettleTimeMs(long settleTimeMs) |
java.awt.image.BufferedImage |
settleAndCapture()
Same as capture(), but waits the settle time before capturing.
|
void |
setUnitsPerPixel(Location unitsPerPixel) |
void |
setVisionProvider(VisionProvider visionProvider) |
void |
startContinuousCapture(CameraListener listener)
Registers a listener to receive continuous images from the camera.
|
void |
stopContinuousCapture(CameraListener listener)
Requests that the continuous capture be stopped for the previously registered listener.
|
java.lang.String |
toString() |
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmoveTo, moveToSafeZgetLocationgetConfigurationWizardgetChildPropertySheetHolders, getPropertySheetHolderActions, getPropertySheetHolderTitle, getPropertySheetsprotected java.lang.String id
protected java.lang.String name
protected Camera.Looking looking
protected Location unitsPerPixel
protected VisionProvider visionProvider
protected long settleTimeMs
protected java.util.Set<AbstractCamera.ListenerEntry> listeners
protected Head head
protected java.lang.Integer width
protected java.lang.Integer height
public java.lang.String getId()
getId in interface Identifiablepublic Head getHead()
HeadMountablegetHead in interface HeadMountablepublic void setHead(Head head)
HeadMountablesetHead in interface HeadMountablepublic Location getUnitsPerPixel()
CameragetUnitsPerPixel in interface Camerapublic void setUnitsPerPixel(Location unitsPerPixel)
setUnitsPerPixel in interface Camerapublic void setLooking(Camera.Looking looking)
setLooking in interface Camerapublic Camera.Looking getLooking()
CameragetLooking in interface Camerapublic void startContinuousCapture(CameraListener listener)
CamerastartContinuousCapture in interface Camerapublic void stopContinuousCapture(CameraListener listener)
CamerastopContinuousCapture in interface Camerapublic void setVisionProvider(VisionProvider visionProvider)
setVisionProvider in interface Camerapublic VisionProvider getVisionProvider()
CameragetVisionProvider in interface Camerapublic java.awt.image.BufferedImage settleAndCapture()
CamerasettleAndCapture in interface Cameraprotected void broadcastCapture(java.awt.image.BufferedImage img)
public long getSettleTimeMs()
CameragetSettleTimeMs in interface Camerapublic void setSettleTimeMs(long settleTimeMs)
setSettleTimeMs in interface Camerapublic javax.swing.Icon getPropertySheetHolderIcon()
getPropertySheetHolderIcon in interface PropertySheetHolderpublic void moveTo(Location location) throws java.lang.Exception
public void moveToSafeZ()
throws java.lang.Exception
moveToSafeZ in interface Movablejava.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Object