/** remakes all the dots. Perhaps their was an algorithm change. */ public static void remakeDots() { int popPathState = im.paths; // Pop it like a stack (SPOILERS: IT IS) boolean popDotState = im.showDots; im.paths = ImageFrame.NO_PATHS; im.showDots = false; for (DotTracker tracker : trackers) { tracker.assignDots(); } remakeConnections(); im.paths = popPathState; im.showDots = popDotState; }
/** remakes all the connections between dots. */ public static void remakeConnections() { int popPathState = im.paths; // Pop it like a stack boolean popDotState = im.showDots; im.paths = ImageFrame.NO_PATHS; im.showDots = false; for (int i = 0; i < trackers.length - 1; i++) { trackers[i].assignAllBecomes(trackers[i + 1]); } im.paths = popPathState; im.showDots = popDotState; }
public static void main(String[] args) throws IOException { settupArgs(args); settupImages(); im.showDots = true; im.paths = ImageFrame.SHOWN_PATHS; settupInput(); save(); System.out.println("done"); }