Ejemplo n.º 1
0
  /** 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;
  }
Ejemplo n.º 2
0
  /** 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;
  }
Ejemplo n.º 3
0
  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");
  }