public class TransformedBoxEditor extends Object
The feature consists of an overlay added to the BDV and editing behaviours where the user can edit the box directly by interacting with the overlay. The mouse button is used to drag the corners of the box.
TransformedBoxEditor
does not include any dialog or panel for
numerically adjusting the box parameters.
Modifier and Type | Class and Description |
---|---|
static class |
TransformedBoxEditor.BoxSourceType |
Constructor and Description |
---|
TransformedBoxEditor(InputTriggerConfig keyconf,
ViewerPanel viewer,
ConverterSetups converterSetups,
int setupId,
TriggerBehaviourBindings triggerbindings,
AbstractTransformedBoxModel model) |
TransformedBoxEditor(InputTriggerConfig keyconf,
ViewerPanel viewer,
ConverterSetups converterSetups,
int setupId,
TriggerBehaviourBindings triggerbindings,
AbstractTransformedBoxModel model,
String boxSourceName,
TransformedBoxEditor.BoxSourceType boxSourceType) |
Modifier and Type | Method and Description |
---|---|
org.scijava.listeners.ListenableVar<TransformedBoxOverlay.BoxDisplayMode,org.scijava.listeners.ChangeListener> |
boxDisplayMode() |
boolean |
getFillIntersection()
Only meaningful if
BoxSourceType == NONE |
void |
install() |
boolean |
isEditable() |
void |
setEditable(boolean editable) |
void |
setFillIntersection(boolean fill)
Only meaningful if
BoxSourceType == NONE |
void |
setPerspective(double perspective,
double sourceSize)
Sets up perspective projection for the overlay.
|
void |
uninstall() |
public TransformedBoxEditor(InputTriggerConfig keyconf, ViewerPanel viewer, ConverterSetups converterSetups, int setupId, TriggerBehaviourBindings triggerbindings, AbstractTransformedBoxModel model)
public TransformedBoxEditor(InputTriggerConfig keyconf, ViewerPanel viewer, ConverterSetups converterSetups, int setupId, TriggerBehaviourBindings triggerbindings, AbstractTransformedBoxModel model, String boxSourceName, TransformedBoxEditor.BoxSourceType boxSourceType)
public void install()
public void uninstall()
public boolean getFillIntersection()
BoxSourceType == NONE
public void setFillIntersection(boolean fill)
BoxSourceType == NONE
public org.scijava.listeners.ListenableVar<TransformedBoxOverlay.BoxDisplayMode,org.scijava.listeners.ChangeListener> boxDisplayMode()
public boolean isEditable()
public void setEditable(boolean editable)
public void setPerspective(double perspective, double sourceSize)
perspective * sourceSize
from the
projection plane (screen). Specify perspective = 0
to set
parallel projection.perspective
- the perspective value.sourceSize
- the the size of the source.Copyright © 2015–2021 Fiji. All rights reserved.