FilterAction BorderFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.setParameter(QLatin1String("borderPath"), d->settings.borderPath); action.setParameter(QLatin1String("borderPercent"), d->settings.borderPercent); action.setParameter(QLatin1String("borderType"), d->settings.borderType); action.setParameter(QLatin1String("borderWidth1"), d->settings.borderWidth1); action.setParameter(QLatin1String("borderWidth2"), d->settings.borderWidth2); action.setParameter(QLatin1String("borderWidth3"), d->settings.borderWidth3); action.setParameter(QLatin1String("borderWidth4"), d->settings.borderWidth4); action.setParameter(QLatin1String("preserveAspectRatio"), d->settings.preserveAspectRatio); action.setParameter(QLatin1String("orgHeight"), d->settings.orgHeight); action.setParameter(QLatin1String("orgWidth"), d->settings.orgWidth); action.setParameter(QLatin1String("solidColor"), colorToString(d->settings.solidColor)); action.setParameter(QLatin1String("niepceBorderColor"), colorToString(d->settings.niepceBorderColor)); action.setParameter(QLatin1String("niepceLineColor"), colorToString(d->settings.niepceLineColor)); action.setParameter(QLatin1String("bevelUpperLeftColor"), colorToString(d->settings.bevelUpperLeftColor)); action.setParameter(QLatin1String("bevelLowerRightColor"), colorToString(d->settings.bevelLowerRightColor)); action.setParameter(QLatin1String("decorativeFirstColor"), colorToString(d->settings.decorativeFirstColor)); action.setParameter(QLatin1String("decorativeSecondColor"), colorToString(d->settings.decorativeSecondColor)); return action; }
FilterAction InvertFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); return action; }
FilterAction FilmGrainFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("grainSize"), d->settings.grainSize); action.addParameter(QLatin1String("photoDistribution"), d->settings.photoDistribution); action.addParameter(QLatin1String("addLuminanceNoise"), d->settings.addLuminanceNoise); action.addParameter(QLatin1String("lumaIntensity"), d->settings.lumaIntensity); action.addParameter(QLatin1String("lumaShadows"), d->settings.lumaShadows); action.addParameter(QLatin1String("lumaMidtones"), d->settings.lumaMidtones); action.addParameter(QLatin1String("lumaHighlights"), d->settings.lumaHighlights); action.addParameter(QLatin1String("addChrominanceBlueNoise"), d->settings.addChrominanceBlueNoise); action.addParameter(QLatin1String("chromaBlueIntensity"), d->settings.chromaBlueIntensity); action.addParameter(QLatin1String("chromaBlueShadows"), d->settings.chromaBlueShadows); action.addParameter(QLatin1String("chromaBlueMidtones"), d->settings.chromaBlueMidtones); action.addParameter(QLatin1String("chromaBlueHighlights"), d->settings.chromaBlueHighlights); action.addParameter(QLatin1String("addChrominanceRedNoise"), d->settings.addChrominanceRedNoise); action.addParameter(QLatin1String("chromaRedIntensity"), d->settings.chromaRedIntensity); action.addParameter(QLatin1String("chromaRedShadows"), d->settings.chromaRedShadows); action.addParameter(QLatin1String("chromaRedMidtones"), d->settings.chromaRedMidtones); action.addParameter(QLatin1String("chromaRedHighlights"), d->settings.chromaRedHighlights); return action; }
FilterAction WBFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); m_settings.writeToFilterAction(action); return action; }
FilterAction SharpenFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("radius"), m_radius); action.addParameter(QLatin1String("sigma"), m_sigma); return action; }
FilterAction CharcoalFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("pencil"), d->pencil); action.addParameter(QLatin1String("smooth"), d->smooth); return action; }
FilterAction TextureFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter("blendGain", m_blendGain); action.addParameter("texturePath", m_texturePath); return action; }
FilterAction TonalityFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("blueMask"), m_settings.blueMask); action.addParameter(QLatin1String("greenMask"), m_settings.greenMask); action.addParameter(QLatin1String("redMask"), m_settings.redMask); return action; }
FilterAction HSLFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter("hue", d->settings.hue); action.addParameter("lightness", d->settings.lightness); action.addParameter("saturation", d->settings.saturation); action.addParameter("vibrance", d->settings.vibrance); return action; }
FilterAction NRFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); for (int i = 0; i < 3; ++i) { action.addParameter(QString("softness[%1]").arg(i), d->settings.softness[i]); action.addParameter(QString("thresholds[%1]").arg(i), d->settings.thresholds[i]); } return action; }
FilterAction RefocusFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("correlation"), d->correlation); action.addParameter(QLatin1String("gauss"), d->gauss); action.addParameter(QLatin1String("matrixSize"), d->matrixSize); action.addParameter(QLatin1String("noise"), d->noise); action.addParameter(QLatin1String("radius"), d->radius); return action; }
FilterAction LensDistortionFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("brighten"), m_brighten); action.addParameter(QLatin1String("centre_x"), m_centre_x); action.addParameter(QLatin1String("centre_y"), m_centre_y); action.addParameter(QLatin1String("edge"), m_edge); action.addParameter(QLatin1String("main"), m_main); action.addParameter(QLatin1String("rescale"), m_rescale); return action; }
FilterAction AntiVignettingFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("addvignetting"), m_settings.addvignetting); action.addParameter(QLatin1String("density"), m_settings.density); action.addParameter(QLatin1String("innerradius"), m_settings.innerradius); action.addParameter(QLatin1String("outerradius"), m_settings.outerradius); action.addParameter(QLatin1String("power"), m_settings.power); action.addParameter(QLatin1String("xshift"), m_settings.xshift); action.addParameter(QLatin1String("yshift"), m_settings.yshift); return action; }
FilterAction LevelsFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); for (int i = 0; i < 5; ++i) { action.addParameter(QString::fromLatin1("gamma[%1]").arg(i), m_settings.gamma[i]); action.addParameter(QString::fromLatin1("hInput[%1]").arg(i), m_settings.hInput[i]); action.addParameter(QString::fromLatin1("hOutput[%1]").arg(i), m_settings.hOutput[i]); action.addParameter(QString::fromLatin1("lInput[%1]").arg(i), m_settings.lInput[i]); action.addParameter(QString::fromLatin1("lOutput[%1]").arg(i), m_settings.lOutput[i]); } return action; }
FilterAction DistortionFXFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter(QLatin1String("antiAlias"), d->antiAlias); action.addParameter(QLatin1String("type"), d->effectType); action.addParameter(QLatin1String("iteration"), d->iteration); action.addParameter(QLatin1String("level"), d->level); if (d->effectType == Tile) { action.addParameter(QLatin1String("randomSeed"), d->randomSeed); } return action; }
FilterAction ShearFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter("antiAlias", d->antiAlias); action.addParameter("hAngle", d->hAngle); action.addParameter("orgH", d->orgH); action.addParameter("orgW", d->orgW); action.addParameter("vAngle", d->vAngle); action.addParameter("backgroundColorR", d->backgroundColor.red()); action.addParameter("backgroundColorG", d->backgroundColor.green()); action.addParameter("backgroundColorB", d->backgroundColor.blue()); action.addParameter("backgroundColorA", d->backgroundColor.alpha()); return action; }
FilterAction FreeRotationFilter::filterAction() { FilterAction action(FilterIdentifier(), CurrentVersion()); action.setDisplayableName(DisplayableName()); action.addParameter("angle", d->settings.angle); action.addParameter("antiAlias", d->settings.antiAlias); action.addParameter("autoCrop", d->settings.autoCrop); action.addParameter("newSize", d->settings.newSize); action.addParameter("orgH", d->settings.orgH); action.addParameter("orgW", d->settings.orgW); action.addParameter("backgroundColorR", d->settings.backgroundColor.red()); action.addParameter("backgroundColorG", d->settings.backgroundColor.green()); action.addParameter("backgroundColorB", d->settings.backgroundColor.blue()); action.addParameter("backgroundColorA", d->settings.backgroundColor.alpha()); return action; }
QString NRFilter::filterIdentifier() const { return FilterIdentifier(); }