Package sc.fiji.snt
Class CurationManager
java.lang.Object
sc.fiji.snt.CurationManager
- All Implemented Interfaces:
PlausibilityMonitor.WarningListener
Implements the Curation Assistant pane in SNT's UI. Provides
morphological plausibility feedback during tracing and editing operations.
The panel is organized into:
- Live Monitoring Parameters configures checks that run inline during interactive tracing (fork, segment, finalization hooks).
- On-demand Monitoring Parameters configures heavier checks that scan the full reconstruction.
- Action buttons toggle live monitoring on/off, or trigger a full on-demand scan (which runs both parameter sets across all paths).
- Warnings table displays current issues; double-click to navigate to the issue location.
- Author:
- Tiago Ferreira
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Unregisters this panel from the monitor.getPanel()Builds and returns the panel to be added as a tab in SNTUI.Generates a summary string for the status bar: shows the most severe warning, suitable for display in the QUERY_KEEP status text.voidRefreshes all UI controls (spinners, checkboxes, toggle) from the monitor's current state.protected voidregisterCommands(SNTCommandFinder cmdFinder) Registers curation commands in the SNT Command Finder.voidwarningsUpdated(List<PlausibilityCheck.Warning> warnings) Called whenever the monitor's warning list is updated.
-
Constructor Details
-
CurationManager
-
-
Method Details
-
dispose
public void dispose()Unregisters this panel from the monitor. Should be called when the panel is removed from the UI to avoid listener leaks. -
getPanel
Builds and returns the panel to be added as a tab in SNTUI. -
registerCommands
Registers curation commands in the SNT Command Finder.- Parameters:
cmdFinder- the command finder instance
-
refreshFromMonitor
public void refreshFromMonitor()Refreshes all UI controls (spinners, checkboxes, toggle) from the monitor's current state. Called after loading a preset or restoring a session. -
warningsUpdated
Description copied from interface:PlausibilityMonitor.WarningListenerCalled whenever the monitor's warning list is updated.- Specified by:
warningsUpdatedin interfacePlausibilityMonitor.WarningListener- Parameters:
warnings- the current (immutable) list of warnings
-
getStatusSummary
Generates a summary string for the status bar: shows the most severe warning, suitable for display in the QUERY_KEEP status text.- Returns:
- the summary string, or
nullif no warnings exist
-