本文整理汇总了C++中KisFilterConfiguration::setProperty方法的典型用法代码示例。如果您正苦于以下问题:C++ KisFilterConfiguration::setProperty方法的具体用法?C++ KisFilterConfiguration::setProperty怎么用?C++ KisFilterConfiguration::setProperty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KisFilterConfiguration
的用法示例。
在下文中一共展示了KisFilterConfiguration::setProperty方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: factoryConfiguration
KisFilterConfiguration* KisFilterColorToAlpha::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration("colortoalpha", 1);
config->setProperty("targetcolor", QColor(255, 255, 255));
config->setProperty("threshold", 0);
return config;
}
示例2: factoryConfiguration
KisFilterConfiguration* KisCubismFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("tileSize", 10);
config->setProperty("tileSaturation", 10);
return config;
}
示例3: factoryConfiguration
KisFilterConfiguration* KisOilPaintFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration("oilpaint", 1);
config->setProperty("brushSize", 1);
config->setProperty("smooth", 30);
return config;
}
示例4: factoryConfiguration
KisFilterConfiguration* KisPixelizeFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration("pixelize", 1);
config->setProperty("pixelWidth", 10);
config->setProperty("pixelHeight", 10);
return config;
}
示例5: configuration
KisPropertiesConfiguration* KisWdgColorToAlpha::configuration() const
{
KisFilterConfiguration* config = new KisFilterConfiguration("colortoalpha", 1);
config->setProperty("targetcolor", widget()->colorSelector->color());
config->setProperty("threshold", widget()->intThreshold->value());
return config;
}
示例6: factoryConfiguration
KisFilterConfiguration* KisMotionBlurFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("blurAngle", 0);
config->setProperty("blurLength", 5);
return config;
}
示例7: factoryConfiguration
KisFilterConfiguration* KisRainDropsFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration("raindrops", 1);
config->setProperty("dropsize", 80);
config->setProperty("number", 80);
config->setProperty("fishEyes", 30);
return config;
}
示例8: factoryConfiguration
KisFilterConfiguration* KisUnsharpFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("halfSize", 5);
config->setProperty("amount", 0.5);
config->setProperty("threshold", 10);
return config;
}
示例9: factoryConfiguration
KisFilterConfiguration* KisGaussianBlurFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("horizRadius", 5);
config->setProperty("vertRadius", 5);
config->setProperty("lockAspect", true);
return config;
}
示例10: configuration
KisPropertiesConfiguration* KisWdgUnsharp::configuration() const
{
KisFilterConfiguration* config = new KisFilterConfiguration("unsharp", 1);
config->setProperty("halfSize", widget()->doubleHalfSize->value());
config->setProperty("amount", widget()->doubleAmount->value());
config->setProperty("threshold", widget()->intThreshold->value());
config->setProperty("lightnessOnly", widget()->chkLightnessOnly->isChecked());
return config;
}
示例11: factoryConfiguration
KisFilterConfiguration* KisLensBlurFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("irisShape", "Pentagon (5)");
config->setProperty("irisRadius", 5);
config->setProperty("irisRotation", 0);
return config;
}
示例12: KisFilterConfiguration
KisPropertiesConfiguration * KisHSVConfigWidget::configuration() const
{
KisFilterConfiguration* c = new KisFilterConfiguration(KisHSVAdjustmentFilter::id().id(), 0);
c->setProperty("h", m_page->hue->value());
c->setProperty("s", m_page->saturation->value());
c->setProperty("v", m_page->value->value());
c->setProperty("type", m_page->cmbType->currentIndex());
c->setProperty("colorize", m_page->chkColorize->isChecked());
return c;
}
示例13: factoryConfiguration
KisFilterConfiguration* KisHSVAdjustmentFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("h", 0);
config->setProperty("s", 0);
config->setProperty("v", 0);
config->setProperty("type", 1);
config->setProperty("colorize", false);
return config;
}
示例14: factoryConfiguration
KisFilterConfiguration* KisBlurFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration(id().id(), 1);
config->setProperty("halfWidth", 5);
config->setProperty("halfHeight", 5);
config->setProperty("rotate", 0);
config->setProperty("strength", 0);
config->setProperty("shape", 0);
return config;
}
示例15: factoryConfiguration
KisFilterConfiguration* KisRainDropsFilter::factoryConfiguration(const KisPaintDeviceSP) const
{
KisFilterConfiguration* config = new KisFilterConfiguration("raindrops", 2);
config->setProperty("dropsize", 80);
config->setProperty("number", 80);
config->setProperty("fishEyes", 30);
config->setProperty("seed", QTime::currentTime().msec());
return config;
}