Class ManualTracerThread

java.lang.Object
java.lang.Thread
sc.fiji.snt.tracing.ManualTracerThread
All Implemented Interfaces:
Runnable, SearchInterface

public class ManualTracerThread extends Thread implements SearchInterface
A tracer thread for manual tracing.
Author:
Tiago Ferreira
  • Constructor Details

    • ManualTracerThread

      public ManualTracerThread(SNT plugin, double start_x, double start_y, double start_z, double goal_x, double goal_y, double goal_z)
    • ManualTracerThread

      public ManualTracerThread(SNT plugin, double start_x, double start_y, double start_z, double goal_x, double goal_y, double goal_z, long boundsWidth, long boundsHeight, long boundsDepth)
      Variant that checks the goal against explicit bounds instead of plugin's own current getWidth()/getHeight()/getDepth(). Needed by headless, crop-independent callers (see SNT#manualTraceHeadless, used by BDV/BVV's manual-trace toggle) whose pixel indices are expressed in a grid that is not necessarily plugin's own current canvas grid (e.g. the full streamed source, while a smaller crop is materialized on the classic canvas) - checking against plugin's own, possibly smaller, current dimensions would then wrongly reject a perfectly valid goal.
      Parameters:
      boundsWidth - the width of the grid start_x/goal_x are expressed in, or 0 if unknown
      boundsHeight - the height of the grid start_y/goal_y are expressed in, or 0 if unknown
      boundsDepth - the depth of the grid start_z/goal_z are expressed in, or 0 if unknown
  • Method Details