public class HyperStackDisplayer extends AbstractTrackMateModelView
Modifier and Type | Field and Description |
---|---|
protected ij.ImagePlus |
imp |
static String |
KEY |
protected SpotOverlay |
spotOverlay |
protected TrackOverlay |
trackOverlay |
displaySettings, model, selectionModel
Constructor and Description |
---|
HyperStackDisplayer(Model model,
SelectionModel selectionModel,
DisplaySettings displaySettings) |
HyperStackDisplayer(Model model,
SelectionModel selectionModel,
ij.ImagePlus imp,
DisplaySettings displaySettings) |
Modifier and Type | Method and Description |
---|---|
void |
addOverlay(Roi overlay) |
void |
centerViewOn(Spot spot)
Centers the view on the given spot.
|
void |
clear()
Removes any overlay (for spots or tracks) from this displayer.
|
protected SpotOverlay |
createSpotOverlay(DisplaySettings displaySettings)
Hook for subclassers.
|
protected TrackOverlay |
createTrackOverlay(DisplaySettings displaySettings)
Hook for subclassers.
|
ij.ImagePlus |
getImp()
Exposes the
ImagePlus on which the model is drawn by this view. |
String |
getKey()
Returns the unique key that identifies this view.
|
SelectionModel |
getSelectionModel() |
void |
modelChanged(ModelChangeEvent event)
This notification is fired when a
Model has been changed. |
void |
refresh()
Refreshes the displayer display with current model.
|
void |
render()
Initializes this displayer and render it according to its concrete
implementation.
|
void |
selectionChanged(SelectionChangeEvent event)
This needs to be overridden for concrete implementation to display
selection.
|
getModel
protected final ij.ImagePlus imp
protected SpotOverlay spotOverlay
protected TrackOverlay trackOverlay
public static final String KEY
public HyperStackDisplayer(Model model, SelectionModel selectionModel, ij.ImagePlus imp, DisplaySettings displaySettings)
public HyperStackDisplayer(Model model, SelectionModel selectionModel, DisplaySettings displaySettings)
protected SpotOverlay createSpotOverlay(DisplaySettings displaySettings)
displaySettings
- protected TrackOverlay createTrackOverlay(DisplaySettings displaySettings)
displaySettings
- public ij.ImagePlus getImp()
ImagePlus
on which the model is drawn by this view.public void modelChanged(ModelChangeEvent event)
ModelChangeListener
Model
has been changed.event
- the ModelChangeEvent
.public void selectionChanged(SelectionChangeEvent event)
AbstractTrackMateModelView
selectionChanged
in interface SelectionChangeListener
selectionChanged
in class AbstractTrackMateModelView
event
- the event that characterizes the change.public void centerViewOn(Spot spot)
TrackMateModelView
public void render()
TrackMateModelView
public void refresh()
TrackMateModelView
public void clear()
TrackMateModelView
public void addOverlay(Roi overlay)
public SelectionModel getSelectionModel()
public String getKey()
TrackMateModelView
Careful: this key must be the same that for the
ViewFactory
that can instantiates this view. This is to
facilitate saving/loading.
Copyright © 2015–2021 Fiji. All rights reserved.