The KisSaveGroupVisitor class saves the groups in a Krita image to separate images.
More...
#include <KisSaveGroupVisitor.h>
The KisSaveGroupVisitor class saves the groups in a Krita image to separate images.
Definition at line 26 of file KisSaveGroupVisitor.h.
◆ KisSaveGroupVisitor()
| KisSaveGroupVisitor::KisSaveGroupVisitor |
( |
KisImageWSP | image, |
|
|
bool | saveInvisible, |
|
|
bool | saveTopLevelOnly, |
|
|
const QString & | path, |
|
|
const QString & | baseName, |
|
|
const QString & | extension, |
|
|
const QString & | mimeFilter ) |
Create a KisSaveGroupVisitor
- Parameters
-
| image | the image to save |
| saveInvisible | also save invisible layers |
| saveTopLevelOnly | if true, only save the toplevel layers, otherwise descend into groups and save the bottom-most groups (groups that do not contain another group. |
| path | the base location where the images will be saved |
| baseName | the basename of the images |
| extension | the file format extension |
| mimeFilter | the export image type |
Definition at line 13 of file KisSaveGroupVisitor.cpp.
◆ ~KisSaveGroupVisitor()
| KisSaveGroupVisitor::~KisSaveGroupVisitor |
( |
| ) |
|
|
override |
◆ visit() [1/12]
◆ visit() [2/12]
◆ visit() [3/12]
◆ visit() [4/12]
◆ visit() [5/12]
◆ visit() [6/12]
◆ visit() [7/12]
Implements KisNodeVisitor.
Definition at line 80 of file KisSaveGroupVisitor.cpp.
81{
84 while (child) {
87 }
88
89 }
91
93
95 {
96
102 gc.bitBlt(QPoint(0, 0), layer->
projection(), r);
104
106 }
107
109
112
115 while (child) {
118 }
119 }
120 delete exportDocument;
121 }
122
123 return true;
124}
KisUndoStore * createUndoStore()
void setFileBatchMode(const bool batchMode)
bool exportDocumentSync(const QString &path, const QByteArray &mimeType, KisPropertiesConfigurationSP exportConfiguration=0)
void setCurrentImage(KisImageSP image, bool forceInitialUpdate=true, KisNodeSP preActivatedNode=nullptr)
KisGroupLayerSP rootLayer() const
const KoColorSpace * colorSpace() const
void initialRefreshGraph()
QRect bounds() const override
void setResolution(double xres, double yres)
static KisPart * instance()
KisDocument * createDocument() const
virtual bool visible(bool recursive=false) const
bool accept(KisNodeVisitor &v) override
KisPaintDeviceSP projection() const override
bool addNode(KisNodeSP node, KisNodeSP parent=KisNodeSP(), KisNodeAdditionFlags flags=KisNodeAdditionFlag::None)
KisNodeSP firstChild() const
bool accept(KisNodeVisitor &v) override
KisNodeSP nextSibling() const
KisPaintDeviceSP paintDevice
References KisGroupLayer::accept(), KisNode::accept(), KisNodeFacade::addNode(), KisPainter::bitBlt(), KisImage::bounds(), KisImage::colorSpace(), KisPart::createDocument(), KisDocument::createUndoStore(), KisSharedPtr< T >::data(), KisDocument::exportDocumentSync(), KisNode::firstChild(), KisImage::initialRefreshGraph(), KisPart::instance(), m_baseName, m_extension, m_image, m_mimeFilter, m_path, m_saveInvisible, m_saveTopLevelOnly, KisBaseNode::name(), KisNode::nextSibling(), KisBaseNode::opacity(), KisPaintLayer::paintDevice, KisLayer::projection(), KisImage::rootLayer(), KisDocument::setCurrentImage(), KisDocument::setFileBatchMode(), KisImage::setResolution(), KisBaseNode::visible(), KisImage::xRes(), and KisImage::yRes().
◆ visit() [8/12]
| bool KisSaveGroupVisitor::visit |
( |
KisNode * | | ) |
|
|
overridevirtual |
◆ visit() [9/12]
◆ visit() [10/12]
◆ visit() [11/12]
◆ visit() [12/12]
◆ m_baseName
| QString KisSaveGroupVisitor::m_baseName |
|
private |
◆ m_extension
| QString KisSaveGroupVisitor::m_extension |
|
private |
◆ m_image
◆ m_mimeFilter
| QString KisSaveGroupVisitor::m_mimeFilter |
|
private |
◆ m_path
| QString KisSaveGroupVisitor::m_path |
|
private |
◆ m_saveInvisible
| bool KisSaveGroupVisitor::m_saveInvisible |
|
private |
◆ m_saveTopLevelOnly
| bool KisSaveGroupVisitor::m_saveTopLevelOnly |
|
private |
The documentation for this class was generated from the following files: