|
Krita Source Code Documentation
|
Public Member Functions | |
| void | createOrderingMap () |
| Private (const QDomDocument &_extraData, KisImageSP _image) | |
| void | processLayers (KisNodeSP root) |
| void | sortLayers (KisNodeSP root) |
Public Attributes | |
| const QDomDocument & | extraData |
| KisImageSP | image |
| QMap< KisNodeSP, int > | nodeToOrderingMap |
| QMap< QString, QDomElement > | pathToElementMap |
| QMap< QString, int > | pathToOrderingMap |
Definition at line 18 of file kis_exr_layers_sorter.cpp.
|
inline |
Definition at line 20 of file kis_exr_layers_sorter.cpp.
| void KisExrLayersSorter::Private::createOrderingMap | ( | ) |
Definition at line 55 of file kis_exr_layers_sorter.cpp.
References EXR_NAME, extraData, pathToElementMap, and pathToOrderingMap.
In older files (before Krita 5.2.7) we used to save the layer offset into the XML metadata, while loading the pixel data at the origin. Since 5.2.7 we stopped saving offsets (we save null instead of them), we let's just make sure we don't load garbage from older files).
Hence, we pass false for loading the offset
Definition at line 89 of file kis_exr_layers_sorter.cpp.
References KisSharedPtr< T >::data(), fetchMapValueLazy(), KisNode::firstChild(), getNodePath(), KisSaveXmlVisitor::loadPaintLayerAttributes(), KisNode::nextSibling(), and KisNode::parent.
Definition at line 132 of file kis_exr_layers_sorter.cpp.
References KisNode::childCount(), KisNode::firstChild(), and KisNode::nextSibling().
| const QDomDocument& KisExrLayersSorter::Private::extraData |
Definition at line 23 of file kis_exr_layers_sorter.cpp.
| KisImageSP KisExrLayersSorter::Private::image |
Definition at line 24 of file kis_exr_layers_sorter.cpp.
| QMap<KisNodeSP, int> KisExrLayersSorter::Private::nodeToOrderingMap |
Definition at line 29 of file kis_exr_layers_sorter.cpp.
| QMap<QString, QDomElement> KisExrLayersSorter::Private::pathToElementMap |
Definition at line 26 of file kis_exr_layers_sorter.cpp.
| QMap<QString, int> KisExrLayersSorter::Private::pathToOrderingMap |
Definition at line 27 of file kis_exr_layers_sorter.cpp.