public interface Camera extends HeadMountable, WizardConfigurable, PropertySheetHolder, java.io.Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
Camera.Looking |
static class |
Camera.SettleOption |
Locatable.LocationOption
PropertySheetHolder.PropertySheet
Modifier and Type | Method and Description |
---|---|
void |
actuateLightAfterCapture()
Inform the Camera that the light actuator (if any) may now be actuated to the default off setting.
|
default void |
actuateLightBeforeCapture()
Inform the Camera that the light actuator (if any) should now be actuated to the default light setting.
|
void |
actuateLightBeforeCapture(java.lang.Object light)
Inform the Camera that the light actuator (if any) should now be actuated to the given light setting.
|
java.awt.image.BufferedImage |
capture()
Immediately captures an image from the camera and returns it in it's native format.
|
java.awt.image.BufferedImage |
captureRaw() |
java.awt.image.BufferedImage |
captureTransformed() |
void |
ensureCameraVisible()
Ensure the related CameraView will eventually be made visible on the user interface.
|
Length |
getDefaultZ()
Gets the Z height of the default working plane for this camera.
|
FocusProvider |
getFocusProvider() |
int |
getHeight()
Get the height of images in pixels that will be returned from this Camera.
|
Actuator |
getLightActuator() |
Location |
getLocation(HeadMountable tool)
Get the location of the camera including the calibrated offset for the given tool.
|
Camera.Looking |
getLooking()
Get the direction the Camera is looking.
|
Length |
getRoamingRadius() |
Location |
getUnitsPerPixel()
The number of X and Y units per pixel this camera shows when in perfect focus.
|
Location |
getUnitsPerPixel(Length z)
Gets the units per pixel for determining the physical size of an object in an image given
its Z height is known
|
default Location |
getUnitsPerPixelAtZ()
Gets units per pixel for determining the physical size of an object in an image given
its Z is at the (virtual) Z axis of the camera location.
|
VisionProvider |
getVisionProvider()
Get the VisionProvider that is attached to this Camera, if any.
|
int |
getWidth()
Get the width of images in pixels that will be returned from this Camera.
|
boolean |
hasNewFrame() |
default boolean |
isAutoVisible() |
boolean |
isShownInMultiCameraView() |
default boolean |
isUnitsPerPixelAtZCalibrated() |
java.awt.image.BufferedImage |
lightSettleAndCapture()
Same as capture(), but lights and settles the camera before capturing.
|
void |
setLooking(Camera.Looking looking) |
default java.awt.image.BufferedImage |
settleAndCapture()
Same as capture() but settles the camera before capturing.
|
java.awt.image.BufferedImage |
settleAndCapture(Camera.SettleOption settleOption)
Same as capture() but settles the camera 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.
|
getCameraToolCalibratedOffset, getHead, setHead, toHeadLocation, toHeadMountableLocation, waitForCompletion
getAxis, getAxisRotation, getAxisX, getAxisY, getAxisZ, getMappedAxes, toRaw, toTransformed
getEffectiveSafeZ, getSafeZ, getSafeZZone, home, isInSafeZZone, isReachable, moveTo, moveTo, moveToSafeZ, moveToSafeZ
getApproximativeLocation, getLocation
getId
findIssues, getSubjectIcon, getSubjectText
getConfigurationWizard
getChildPropertySheetHolders, getPropertySheetHolderActions, getPropertySheetHolderIcon, getPropertySheetHolderTitle, getPropertySheets
Location getLocation(HeadMountable tool)
tool
- Camera.Looking getLooking()
void setLooking(Camera.Looking looking)
Location getUnitsPerPixel()
void setUnitsPerPixel(Location unitsPerPixel)
Location getUnitsPerPixel(Length z)
z
- - a length with the z coordinate of the imaged object, if null, the height of the
default working plane for this camera is useddefault Location getUnitsPerPixelAtZ()
Length getDefaultZ()
default boolean isUnitsPerPixelAtZCalibrated()
java.awt.image.BufferedImage capture() throws java.lang.Exception
java.lang.Exception
java.awt.image.BufferedImage captureTransformed()
java.awt.image.BufferedImage captureRaw()
java.awt.image.BufferedImage settleAndCapture(Camera.SettleOption settleOption) throws java.lang.Exception
settleOption
- Determines how thorough the settling is.java.lang.Exception
default java.awt.image.BufferedImage settleAndCapture() throws java.lang.Exception
java.lang.Exception
java.awt.image.BufferedImage lightSettleAndCapture() throws java.lang.Exception
java.lang.Exception
boolean hasNewFrame()
void startContinuousCapture(CameraListener listener)
listener
- void stopContinuousCapture(CameraListener listener)
listener
- void setVisionProvider(VisionProvider visionProvider)
VisionProvider getVisionProvider()
int getWidth()
int getHeight()
Actuator getLightActuator()
void actuateLightBeforeCapture(java.lang.Object light) throws java.lang.Exception
light
- Provides the light actuation value or null for default lighting.java.lang.Exception
default void actuateLightBeforeCapture() throws java.lang.Exception
java.lang.Exception
void actuateLightAfterCapture() throws java.lang.Exception
java.lang.Exception
void ensureCameraVisible()
default boolean isAutoVisible()
ensureCameraVisible()
should be called on this Camera whenever
a targeted user action changes the Camera view.boolean isShownInMultiCameraView()
FocusProvider getFocusProvider()
Length getRoamingRadius()