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);
}
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;
}
Aggregations