Search in sources :

Example 1 with DOFBlurShapeType

use of org.jwildfire.create.tina.render.dof.DOFBlurShapeType in project JWildfire by thargor6.

the class FlameControlsDelegate method dofDOFShapeCmb_changed.

public void dofDOFShapeCmb_changed() {
    if (!isNoRefresh()) {
        Flame flame = getCurrFlame();
        if (flame != null) {
            owner.saveUndoPoint();
            DOFBlurShapeType shape = (DOFBlurShapeType) data.dofDOFShapeCmb.getSelectedItem();
            flame.setCamDOFShape(shape);
            shape.getDOFBlurShape().setDefaultParams(getCurrFlame());
            setupDOFParamsControls(getCurrFlame().getCamDOFShape());
            refreshBokehParams();
            owner.refreshFlameImage(true, false, 1, true, false);
        }
    }
}
Also used : DOFBlurShapeType(org.jwildfire.create.tina.render.dof.DOFBlurShapeType) Flame(org.jwildfire.create.tina.base.Flame)

Aggregations

Flame (org.jwildfire.create.tina.base.Flame)1 DOFBlurShapeType (org.jwildfire.create.tina.render.dof.DOFBlurShapeType)1