Class LiveStreamViewCameraControlsAutofocus
java.lang.Object
uk.ac.gda.client.live.stream.view.customui.LiveStreamViewCameraControlsAutofocus
- All Implemented Interfaces:
LiveStreamViewCameraControlsExtension
public class LiveStreamViewCameraControlsAutofocus
extends Object
implements LiveStreamViewCameraControlsExtension
An extension to
LiveStreamView to edit a series of autofocus points on the view and use these to focus the
image.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass to specify a focus point as x/y centre and x/y size, as an easier way to specify a ROI -
Constructor Summary
ConstructorsConstructorDescriptionLiveStreamViewCameraControlsAutofocus(String secondaryId, List<LiveStreamViewCameraControlsAutofocus.FocusPoint> focusPoints) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUi(org.eclipse.swt.widgets.Composite composite, CameraControl cameraControl) Create the UI associated with this extensionbooleanvoidsetActiveFocusPoints(Collection<String> activeFocusPoints) Define which focus points should be active by default.
If this is not called, all points will default to active.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.gda.client.live.stream.view.customui.LiveStreamViewCameraControlsExtension
dispose
-
Constructor Details
-
LiveStreamViewCameraControlsAutofocus
public LiveStreamViewCameraControlsAutofocus(String secondaryId, List<LiveStreamViewCameraControlsAutofocus.FocusPoint> focusPoints)
-
-
Method Details
-
createUi
Description copied from interface:LiveStreamViewCameraControlsExtensionCreate the UI associated with this extensionThe parent composite will allocate one column to the UI. This class may, of course, subdivide this into multiple columns.
- Specified by:
createUiin interfaceLiveStreamViewCameraControlsExtension- Parameters:
composite- The parent composite on which to create thus UIcameraControl- Object to control the camera
-
setActiveFocusPoints
Define which focus points should be active by default.
If this is not called, all points will default to active.- Parameters:
activeFocusPoints- names of the focus points that should be active
-
isAllowSampleRotation
public boolean isAllowSampleRotation()
-