Search in sources :

Example 1 with FacadeTool

use of org.twak.tweed.tools.FacadeTool in project chordatlas by twak.

the class BlockGen method renderPanos.

private void renderPanos() {
    if (getInputFolder(FeatureCache.FEATURE_FOLDER).exists()) {
        int result = JOptionPane.showConfirmDialog(tweed.frame(), "feature folder already exists. really re-render?", "alert", JOptionPane.OK_CANCEL_OPTION);
        if (result == JOptionPane.CANCEL_OPTION)
            return;
    }
    GISGen.mode = Mode.RENDER_SELECTED_BLOCK;
    FacadeFinder.facadeMode = FacadeMode.PER_CAMERA;
    new FacadeTool(tweed).facadeSelected(polies, this);
}
Also used : FacadeTool(org.twak.tweed.tools.FacadeTool) ICanPaint(org.twak.utils.PaintThing.ICanPaint)

Example 2 with FacadeTool

use of org.twak.tweed.tools.FacadeTool in project chordatlas by twak.

the class PanoGen method getUI.

@Override
public JComponent getUI() {
    ui.removeAll();
    ui.setLayout(new ListDownLayout());
    if (new File(Tweed.toWorkspace(folder), TO_DOWNLOAD).exists()) {
        JButton download = new JButton("download");
        download.addActionListener(e -> downloadPanos());
        ui.add(download);
    }
    JButton align = new JButton("facade tool");
    align.addActionListener(e -> tweed.setTool(new FacadeTool(tweed)));
    ui.add(align);
    JButton plane = new JButton("plane tool");
    plane.addActionListener(e -> tweed.setTool(new PlaneTool(tweed)));
    ui.add(plane);
    return ui;
}
Also used : ListDownLayout(org.twak.utils.ui.ListDownLayout) JButton(javax.swing.JButton) File(java.io.File) FacadeTool(org.twak.tweed.tools.FacadeTool) PlaneTool(org.twak.tweed.tools.PlaneTool)

Aggregations

FacadeTool (org.twak.tweed.tools.FacadeTool)2 File (java.io.File)1 JButton (javax.swing.JButton)1 PlaneTool (org.twak.tweed.tools.PlaneTool)1 ICanPaint (org.twak.utils.PaintThing.ICanPaint)1 ListDownLayout (org.twak.utils.ui.ListDownLayout)1