public abstract class AbstractCamera extends AbstractModelObject implements Camera
Modifier and Type | Class and Description |
---|---|
protected class |
AbstractCamera.ListenerEntry |
Camera.Looking
PropertySheetHolder.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, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
moveTo, moveToSafeZ
getLocation
getConfigurationWizard
getChildPropertySheetHolders, getPropertySheetHolderActions, getPropertySheetHolderTitle, getPropertySheets
protected 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 Identifiable
public Head getHead()
HeadMountable
getHead
in interface HeadMountable
public void setHead(Head head)
HeadMountable
setHead
in interface HeadMountable
public Location getUnitsPerPixel()
Camera
getUnitsPerPixel
in interface Camera
public void setUnitsPerPixel(Location unitsPerPixel)
setUnitsPerPixel
in interface Camera
public void setLooking(Camera.Looking looking)
setLooking
in interface Camera
public Camera.Looking getLooking()
Camera
getLooking
in interface Camera
public void startContinuousCapture(CameraListener listener)
Camera
startContinuousCapture
in interface Camera
public void stopContinuousCapture(CameraListener listener)
Camera
stopContinuousCapture
in interface Camera
public void setVisionProvider(VisionProvider visionProvider)
setVisionProvider
in interface Camera
public VisionProvider getVisionProvider()
Camera
getVisionProvider
in interface Camera
public java.awt.image.BufferedImage settleAndCapture()
Camera
settleAndCapture
in interface Camera
protected void broadcastCapture(java.awt.image.BufferedImage img)
public long getSettleTimeMs()
Camera
getSettleTimeMs
in interface Camera
public void setSettleTimeMs(long settleTimeMs)
setSettleTimeMs
in interface Camera
public javax.swing.Icon getPropertySheetHolderIcon()
getPropertySheetHolderIcon
in interface PropertySheetHolder
public void moveTo(Location location) throws java.lang.Exception
public void moveToSafeZ() throws java.lang.Exception
moveToSafeZ
in interface Movable
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object