Package sc.fiji.snt.gui
Class CostPalette
java.lang.Object
java.lang.Thread
sc.fiji.snt.gui.CostPalette
- All Implemented Interfaces:
Runnable
SNT "Cost Function Wizard": runs A* with each of the
SNT.CostType variants between two endpoints and displays
all candidate paths as colored overlays on a single cropped ImagePlus. The user picks the preferred variant
from a drop-down; SNT then adopts that CostType and (when applicable) replaces the probe path with the
chosen variant.- Author:
- Tiago Ferreira
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceListener notified when the user picks (or cancels).Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
CostPalette
-
-
Method Details
-
setParent
-
addListener
-
show
public void show() -
validateProbe
Checks if the probe segment can be used: both endpoints must lie within the data being traced and, in Stream mode, be close enough to avoid reading a very large region of lazy/remote data.- Returns:
- a message describing the problem, or null if the probe segment is usable
-
run
public void run() -
dismiss
public void dismiss()
-