use of org.jwildfire.create.tina.dance.action.PostRecordFlameGenerator in project JWildfire by thargor6.
the class DancingFractalsController method stopRender.
public void stopRender() throws Exception {
if (renderThread != null) {
if (doRecordCBx.isSelected()) {
actionRecorder.recordStop();
}
renderThread.setForceAbort(true);
if (doRecordCBx.isSelected()) {
JFileChooser chooser = new FlameFileChooser(prefs);
if (prefs.getOutputFlamePath() != null) {
try {
chooser.setCurrentDirectory(new File(prefs.getOutputFlamePath()));
} catch (Exception ex) {
ex.printStackTrace();
}
}
if (chooser.showSaveDialog(flameRootPanel) == JFileChooser.APPROVE_OPTION) {
File file = chooser.getSelectedFile();
prefs.setLastOutputFlameFile(file);
PostRecordFlameGenerator generator = new PostRecordFlameGenerator(Prefs.getPrefs(), project, actionRecorder, renderThread, project.getFFT());
generator.createRecordedFlameFiles(file.getAbsolutePath());
}
}
renderThread = null;
actionRecorder = null;
}
}
Aggregations