Class CostFunctionSelectionCmd

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.CostFunctionSelectionCmd
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

public class CostFunctionSelectionCmd extends CommonDynamicCmd
Entry-point command for the cost-function wizard. Resolves a pair of points then launches CostPalette. Endpoint pair can be from two sources:
  1. A PointRoi on the active image with at least 2 points
  2. The first / last node of the user's selected (or most-recently added) path
Author:
Tiago Ferreira
  • Constructor Details

    • CostFunctionSelectionCmd

      public CostFunctionSelectionCmd()
  • Method Details

    • init

      protected void init()
    • run

      public void run()
      Specified by:
      run in interface org.scijava.module.MutableModule
      Specified by:
      run in interface Runnable
      Overrides:
      run in class CommonDynamicCmd