public class ManualTransformationEditor extends Object implements TransformListener<net.imglib2.realtransform.AffineTransform3D>
| Constructor and Description |
|---|
ManualTransformationEditor(AbstractViewerPanel viewer,
org.scijava.ui.behaviour.util.InputActionBindings inputActionBindings) |
ManualTransformationEditor(org.scijava.listeners.Listeners<TransformListener<net.imglib2.realtransform.AffineTransform3D>> viewerTransformListeners,
ViewerState viewerState,
Runnable requestRepaint,
Consumer<String> viewerMessageDisplay,
org.scijava.ui.behaviour.util.InputActionBindings inputActionBindings) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
End the ongoing manual transformation and discard the incremental
transformation.
|
void |
apply()
End the ongoing manual transformation and fix the incremental
transformation.
|
org.scijava.listeners.Listeners<ManualTransformActiveListener> |
manualTransformActiveListeners() |
void |
reset()
During an ongoing manual transformation, reset the transforming sources
to their original transformations.
|
void |
setActive(boolean a) |
void |
toggle() |
void |
transform(Collection<SourceAndConverter<?>> sourcesToTransform)
Initiate a manual transformation modifying the given
sourcesToTransform. |
void |
transformChanged(net.imglib2.realtransform.AffineTransform3D transform) |
public ManualTransformationEditor(AbstractViewerPanel viewer, org.scijava.ui.behaviour.util.InputActionBindings inputActionBindings)
public ManualTransformationEditor(org.scijava.listeners.Listeners<TransformListener<net.imglib2.realtransform.AffineTransform3D>> viewerTransformListeners, ViewerState viewerState, Runnable requestRepaint, Consumer<String> viewerMessageDisplay, org.scijava.ui.behaviour.util.InputActionBindings inputActionBindings)
viewerTransformListeners - the editor will register here for listening to transform changes while activeviewerState - the state which is manipulated by the editorviewerMessageDisplay - messages will be displayed hereinputActionBindings - the editors actionMap will be registered here while activepublic void transform(Collection<SourceAndConverter<?>> sourcesToTransform)
sourcesToTransform. If sourcesToTransform == null, use the
current source (or source group).public void reset()
public void apply()
public void abort()
public void setActive(boolean a)
public void toggle()
public void transformChanged(net.imglib2.realtransform.AffineTransform3D transform)
transformChanged in interface TransformListener<net.imglib2.realtransform.AffineTransform3D>public org.scijava.listeners.Listeners<ManualTransformActiveListener> manualTransformActiveListeners()
Copyright © 2012–2025 BigDataViewer. All rights reserved.