use of org.jwildfire.create.tina.base.solidrender.SolidRenderSettings in project JWildfire by thargor6.
the class FlameControlsDelegate method enableBokehPanels.
private void enableBokehPanels() {
if (getCurrFlame() != null) {
SolidRenderSettings settings = getCurrFlame().getSolidRenderSettings();
((JTabbedPane) data.bokehSettingsPnl.getParent()).setEnabledAt(1, !settings.isSolidRenderingEnabled());
data.bokehSettingsPnl.setEnabled(!settings.isSolidRenderingEnabled());
((JTabbedPane) data.bokehSettingsPnl.getParent()).setEnabledAt(2, settings.isSolidRenderingEnabled());
data.bokehSettingsPnl.setEnabled(settings.isSolidRenderingEnabled());
}
}
use of org.jwildfire.create.tina.base.solidrender.SolidRenderSettings in project JWildfire by thargor6.
the class FlameControlsDelegate method solidRenderingShadowmapSizeCmb_changed.
public void solidRenderingShadowmapSizeCmb_changed() {
if (!isNoRefresh()) {
Flame flame = getCurrFlame();
if (flame != null) {
SolidRenderSettings settings = flame.getSolidRenderSettings();
owner.saveUndoPoint();
settings.setShadowmapSize(Integer.parseInt((String) data.tinaSolidRenderingShadowmapSizeCmb.getSelectedItem()));
owner.refreshFlameImage(true, false, 1, true, false);
}
}
}
use of org.jwildfire.create.tina.base.solidrender.SolidRenderSettings in project JWildfire by thargor6.
the class FlameControlsDelegate method solidRenderingPostBokehFilterKernelCmb_changed.
public void solidRenderingPostBokehFilterKernelCmb_changed() {
if (!isNoRefresh()) {
Flame flame = getCurrFlame();
if (flame != null) {
SolidRenderSettings settings = flame.getSolidRenderSettings();
owner.saveUndoPoint();
settings.setPostBokehFilterKernel((FilterKernelType) data.postBokehFilterKernelCmb.getSelectedItem());
}
}
}
use of org.jwildfire.create.tina.base.solidrender.SolidRenderSettings in project JWildfire by thargor6.
the class FlameControlsDelegate method getSolidRenderingSelectedMaterial.
private MaterialSettings getSolidRenderingSelectedMaterial() {
Flame flame = getCurrFlame();
if (flame != null) {
SolidRenderSettings settings = flame.getSolidRenderSettings();
int idx = getSolidRenderingSelectedMaterialIndex();
if (idx >= 0 && idx < settings.getMaterials().size()) {
return settings.getMaterials().get(idx);
}
}
return null;
}
Aggregations