Search in sources :

Example 1 with SuperMeshPainter

use of org.twak.viewTrace.SuperMeshPainter in project chordatlas by twak.

the class TweedFrame method main.

public static void main(String[] args) throws Throwable {
    WindowManager.init(APP_NAME, "/org/twak/tweed/resources/icon128.png");
    UIManager.put("Slider.paintValue", false);
    // show menus over 3d canvas
    JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    ToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);
    PaintThing.lookup.put(HalfMesh2.class, new SuperMeshPainter());
    new TweedFrame();
}
Also used : SuperMeshPainter(org.twak.viewTrace.SuperMeshPainter)

Example 2 with SuperMeshPainter

use of org.twak.viewTrace.SuperMeshPainter in project chordatlas by twak.

the class SSBuilder method preview.

private SolverState preview(boolean finall) {
    PaintThing.lookup.put(HalfMesh2.class, new SuperMeshPainter());
    PaintThing.debug.clear();
    plot.toPaint.clear();
    SkelFootprint sf = updateVars();
    if (finall)
        sf.exitA = false;
    ProgressMonitor pm = new ProgressMonitor(null, "working", "...", 0, 100);
    SolverState SS;
    try {
        SS = sf.buildFootprint(profileGen.footprint, pm, features, profileGen.blockGen);
    } finally {
        pm.close();
    }
    if (SS != null) {
        System.out.println("done");
        plot.toPaint.add(profileGen.blockGen.nameCoords());
        plot.toPaint.add(SS.mesh);
        plot.toPaint.add(SS.miniPainter());
    } else
        PaintThing.debug(Color.red, 1, "Bad state");
    plot.repaint();
    return SS;
}
Also used : ProgressMonitor(javax.swing.ProgressMonitor) SuperMeshPainter(org.twak.viewTrace.SuperMeshPainter)

Aggregations

SuperMeshPainter (org.twak.viewTrace.SuperMeshPainter)2 ProgressMonitor (javax.swing.ProgressMonitor)1