#include <psd_additional_layer_info_block.h>
◆ getASLXML()
| QDomDocument psd_layer_pattern_fill::getASLXML |
( |
| ) |
|
|
inline |
Definition at line 724 of file psd_additional_layer_info_block.h.
724 {
726 w.enterDescriptor(
"",
"",
"null");
727
729 qWarning() << "This pattern cannot be saved: No pattern UUID available.";
730 return QDomDocument();
731 }
732
734
736
738 }
void writeASL(KisAslXmlWriter &w)
◆ getBackground()
◆ getBrush()
◆ getFillLayerConfig()
| QDomDocument psd_layer_pattern_fill::getFillLayerConfig |
( |
| ) |
const |
|
inline |
Definition at line 672 of file psd_additional_layer_info_block.h.
672 {
675
677 cfg->setProperty(
"fileName", QString(
patternID +
".pat"));
678 cfg->setProperty("md5", "");
679
680
681 double fixedAngle = 360.0 - fmod(360.0 +
angle, 360.0);
682
683 cfg->setProperty(
"transform_scale_x",
scale / 100);
684 cfg->setProperty(
"transform_scale_y",
scale / 100);
685 cfg->setProperty("transform_rotation_z", fixedAngle);
686
687 cfg->setProperty(
"transform_offset_x",
offset.x());
688 cfg->setProperty(
"transform_offset_y",
offset.y());
689 QDomDocument doc;
690 doc.setContent(cfg->toXML());
691 return doc;
692 }
static KisGeneratorRegistry * instance()
const T value(const QString &id) const
virtual KisFilterConfigurationSP defaultConfiguration(KisResourcesInterfaceSP resourcesInterface) const
References KisBaseProcessor::defaultConfiguration(), KisGeneratorRegistry::instance(), KisGlobalResourcesInterface::instance(), and KoGenericRegistry< T >::value().
◆ loadFromConfig()
Definition at line 694 of file psd_additional_layer_info_block.h.
694 {
695 if (cfg->name() != "pattern") {
696 return false;
697 }
698
699 const QString patternMD5 = cfg->getString("md5", "");
700 const QString patternNameTemp = cfg->getString("pattern", "Grid01.pat");
701 const QString patternFileName = cfg->getString("fileName", "");
702
705
707
708
709
711
712 scale = cfg->getDouble(
"transform_scale_x", 1.0) * 100;
713
714 angle = 360.0 - cfg->getDouble(
"transform_rotation_z", 0.0);
717 }
718
719 offset = QPointF(cfg->getInt(
"transform_offset_x", 0), cfg->getInt(
"transform_offset_y", 0));
720
721 return true;
722 }
References KisGlobalResourcesInterface::instance(), ResourceType::Patterns, and KoResourceLoadResult::resource().
◆ loadPattern()
◆ setAlignWithLayer()
| void psd_layer_pattern_fill::setAlignWithLayer |
( |
bool | align | ) |
|
|
inline |
◆ setAngle()
| void psd_layer_pattern_fill::setAngle |
( |
float | Angl | ) |
|
|
inline |
◆ setOffset()
| void psd_layer_pattern_fill::setOffset |
( |
QPointF | phase | ) |
|
|
inline |
◆ setPatternRef()
| void psd_layer_pattern_fill::setPatternRef |
( |
const QString | Idnt, |
|
|
const QString | name ) |
|
inline |
◆ setScale()
| void psd_layer_pattern_fill::setScale |
( |
float | Scl | ) |
|
|
inline |
◆ setupCatcher()
Definition at line 664 of file psd_additional_layer_info_block.h.
664 {
670 }
void subscribeUnitFloat(const QString &path, const QString &unit, ASLCallbackDouble callback)
void subscribePoint(const QString &path, ASLCallbackPoint callback)
void subscribeBoolean(const QString &path, ASLCallbackBoolean callback)
void subscribePatternRef(const QString &path, ASLCallbackPatternRef callback)
void setOffset(QPointF phase)
void setAngle(float Angl)
void setPatternRef(const QString Idnt, const QString name)
void setAlignWithLayer(bool align)
References setAlignWithLayer(), setAngle(), setOffset(), setPatternRef(), setScale(), KisAslCallbackObjectCatcher::subscribeBoolean(), KisAslCallbackObjectCatcher::subscribePatternRef(), KisAslCallbackObjectCatcher::subscribePoint(), and KisAslCallbackObjectCatcher::subscribeUnitFloat().
◆ writeASL()
◆ align_with_layer
| bool psd_layer_pattern_fill::align_with_layer {false} |
◆ angle
| double psd_layer_pattern_fill::angle {0.0} |
◆ offset
| QPointF psd_layer_pattern_fill::offset |
◆ pattern
◆ patternID
| QString psd_layer_pattern_fill::patternID |
◆ patternName
| QString psd_layer_pattern_fill::patternName |
◆ scale
| double psd_layer_pattern_fill::scale {100.0} |
The documentation for this struct was generated from the following file: