public interface SnapLiveManager
Modifier and Type | Method and Description |
---|---|
void |
displayImage(Image image)
Insert the provided image into the Datastore, causing it to be displayed
in any open Snap/Live DisplayWindows.
|
DisplayWindow |
getDisplay()
Return the DisplayWindow used for snap/live mode.
|
default boolean |
getIsLiveModeOn()
Deprecated.
|
boolean |
isLiveModeOn()
Returns whether live mode is on.
|
default void |
setLiveMode(boolean on)
Deprecated.
|
void |
setLiveModeOn(boolean on)
Turns live mode on or off.
|
void |
setSuspended(boolean shouldSuspend)
Temporarily halt live mode, or re-start it after a temporary halt.
|
java.util.List<Image> |
snap(boolean shouldDisplay)
Perform a snap and display the results, if desired.
|
java.util.List<Image> snap(boolean shouldDisplay)
shouldDisplay
- If true, then the snapped images will be added to
the Snap/Live display's Datastore and displayed. Note that the
displayed images will be run through the current application data
processing pipeline (if any) prior to display. Consequently, there
is no guarantee that a Snap/Live display window will be open after
calling snap(), even if shouldDisplay is set to true. If you want
to know when the display is visible, call
getDislay().waitUntilVisible() after calling snap().boolean isLiveModeOn()
If live mode is on but suspended, this method returns true
.
@Deprecated default boolean getIsLiveModeOn()
void setLiveModeOn(boolean on)
on
- If true, then live mode will be activated; otherwise it will
be halted.@Deprecated default void setLiveMode(boolean on)
void setSuspended(boolean shouldSuspend)
shouldSuspend
- If true, then live mode will be halted if it is
running. If false, and live mode was running when
setSuspended(true) was called, then live mode will be restarted.void displayImage(Image image)
image
- Image to be displayedDisplayWindow getDisplay()