Search in sources :

Example 6 with SolidRenderSettings

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());
    }
}
Also used : JTabbedPane(javax.swing.JTabbedPane) SolidRenderSettings(org.jwildfire.create.tina.base.solidrender.SolidRenderSettings)

Example 7 with SolidRenderSettings

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);
        }
    }
}
Also used : SolidRenderSettings(org.jwildfire.create.tina.base.solidrender.SolidRenderSettings) Flame(org.jwildfire.create.tina.base.Flame)

Example 8 with SolidRenderSettings

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());
        }
    }
}
Also used : SolidRenderSettings(org.jwildfire.create.tina.base.solidrender.SolidRenderSettings) Flame(org.jwildfire.create.tina.base.Flame)

Example 9 with SolidRenderSettings

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;
}
Also used : SolidRenderSettings(org.jwildfire.create.tina.base.solidrender.SolidRenderSettings) Flame(org.jwildfire.create.tina.base.Flame)

Aggregations

SolidRenderSettings (org.jwildfire.create.tina.base.solidrender.SolidRenderSettings)9 Flame (org.jwildfire.create.tina.base.Flame)5 Field (java.lang.reflect.Field)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 RGBPalette (org.jwildfire.create.tina.palette.RGBPalette)2 Point (java.awt.Point)1 Map (java.util.Map)1 Entry (java.util.Map.Entry)1 Set (java.util.Set)1 JTabbedPane (javax.swing.JTabbedPane)1 MotionCurve (org.jwildfire.create.tina.base.motion.MotionCurve)1 Variation (org.jwildfire.create.tina.variation.Variation)1 VariationFunc (org.jwildfire.create.tina.variation.VariationFunc)1