Package sc.fiji.snt.gui.cmds
Class ChooseDatasetCmd
java.lang.Object
org.scijava.module.AbstractModule
org.scijava.module.DefaultMutableModule
org.scijava.command.DynamicCommand
sc.fiji.snt.gui.cmds.CommonDynamicCmd
sc.fiji.snt.gui.cmds.ChooseDatasetCmd
- All Implemented Interfaces:
Runnable,org.scijava.Cancelable,org.scijava.command.Command,org.scijava.Contextual,org.scijava.module.Module,org.scijava.module.MutableModule,org.scijava.plugin.SciJavaPlugin
- Direct Known Subclasses:
LoadSeedsFromLabelsImageCmd
Implements the 'Choose Tracing Image (From Open Image)...' command.
- Author:
- Tiago Ferreira
-
Field Summary
Fields inherited from class sc.fiji.snt.gui.cmds.CommonDynamicCmd
EMPTY_LABEL, HEADER_HTML, snt, sntService, statusService, ui, uiServiceFields inherited from class org.scijava.command.DynamicCommand
moduleService, pluginService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ij.ImagePlusconvertInPlaceToCompositeAsNeeded(SNTUI ui, ij.ImagePlus imp) static ij.ImagePlusstatic Collection<ij.ImagePlus> protected voidinit()protected booleanisCalibrationCompatible(ij.ImagePlus chosenImp) static voidprotected booleanpopulateImpChoices(Predicate<ij.ImagePlus> accept) PopulatesimpMapand the "choice" parameter's widget with the titles of all openImagePlusinstances, excluding the SNT main tracing image (when present) and any image rejected by the optional filter.voidrun()Methods inherited from class sc.fiji.snt.gui.cmds.CommonDynamicCmd
cancel, cancel, error, getPromptWithCloseHandler, getPromptWithCloseHandler, init, isCanceled, msg, notifyExternalDataLoaded, notifyLoadingEnd, notifyLoadingStart, resetUI, resetUI, resetUI, statusMethods inherited from class org.scijava.command.DynamicCommand
context, getCancelReason, getContext, getInfo, getInput, getOutput, saveInputs, setContext, setInput, setOutput, uncancelMethods inherited from class org.scijava.module.AbstractModule
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, preview, resolveInput, resolveOutput, setInputs, setOutputs, unresolveInput, unresolveOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.scijava.module.Module
getDelegateObject, getInputs, getOutputs, initialize, isInputResolved, isOutputResolved, isResolved, preview, resolveInput, resolveOutput, setInputs, setOutputs, setResolved, unresolveInput, unresolveOutputMethods inherited from interface org.scijava.module.MutableModule
addInput, addInput, addOutput, addOutput, removeInput, removeOutput
-
Constructor Details
-
ChooseDatasetCmd
public ChooseDatasetCmd()
-
-
Method Details
-
run
public void run()- Specified by:
runin interfaceorg.scijava.module.MutableModule- Specified by:
runin interfaceRunnable- Overrides:
runin classCommonDynamicCmd
-
isCalibrationCompatible
protected boolean isCalibrationCompatible(ij.ImagePlus chosenImp) -
init
protected void init() -
populateImpChoices
PopulatesimpMapand the "choice" parameter's widget with the titles of all openImagePlusinstances, excluding the SNT main tracing image (when present) and any image rejected by the optional filter. Also updatesaccessToValidImagePlus.- Parameters:
accept- optional predicate; only images for whichaccept.test(imp)istrueare included.nullaccepts every open image other than the tracing image.- Returns:
trueif at least one candidate remains;falseif none are available, in which casenoImgsOpenError()has already been called.
-
getImpInstances
-
getCurrentImage
public static ij.ImagePlus getCurrentImage() -
convertInPlaceToCompositeAsNeeded
-
main
-