Krita
Node.cpp
219 QList<Node*> Node::findChildNodes(const QString &name, bool recursive, bool partialMatch, const QString &type, int colorLabelIndex) const
236 (type == "referenceimageslayer" && !qobject_cast<const KisReferenceImagesLayer*>(nodeList.at(i))) ||
340 bool Node::setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
349 d->image->convertLayerColorSpace(d->node, dstCs, KoColorConversionTransformation::internalRenderingIntent(), KoColorConversionTransformation::internalConversionFlags());
520 KisRasterKeyframeChannel *rkc = dynamic_cast<KisRasterKeyframeChannel*>(d->node->getKeyframeChannel(KisKeyframeChannel::Raster.id()));
560 KisRasterKeyframeChannel *rkc = dynamic_cast<KisRasterKeyframeChannel*>(d->node->getKeyframeChannel(KisKeyframeChannel::Raster.id()));
564 KisPaintDeviceSP dev = new KisPaintDevice(*d->node->paintDevice(), KritaUtils::DeviceCopyMode::CopySnapshot);
646 bool Node::save(const QString &filename, double xRes, double yRes, const InfoObject &exportConfiguration, const QRect &exportRect)
671 bool r = doc->exportDocumentSync(filename, mimeType.toLatin1(), exportConfiguration.configuration());
bool alphaLocked() const
alphaLocked checks whether the node is a paint layer and returns whether it is alpha locked
Definition: Node.cpp:151
virtual QString type() const
type Krita has several types of nodes, split in layers and masks.
Definition: Node.cpp:456
QImage thumbnail(int w, int h)
thumbnail create a thumbnail of the given dimensions.
Definition: Node.cpp:740
bool inheritAlpha() const
inheritAlpha checks whether this node has the inherits alpha flag set
Definition: Node.cpp:390
int right() const const
bool hasKeyframeAtTime(int frameNumber)
Check to see if frame number on layer is a keyframe.
Definition: Node.cpp:516
bool setColorProfile(const QString &colorProfile)
setColorProfile set the color profile of the image to the given profile.
Definition: Node.cpp:329
void setChildNodes(QList< Node * > nodes)
setChildNodes this replaces the existing set of child nodes with the new set.
Definition: Node.cpp:282
The ColorizeMask class A colorize mask is a mask type node that can be used to color in line art.
Definition: ColorizeMask.h:59
bool save(const QString &filename, double xRes, double yRes, const InfoObject &exportConfiguration, const QRect &exportRect=QRect())
save exports the given node with this filename.
Definition: Node.cpp:646
int width() const const
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
QByteArray toLatin1() const const
The GroupLayer class A group layer is a layer that can contain other layers.
Definition: GroupLayer.h:29
QString layerStyleToAsl()
layerStyleToAsl retrieve the current layer's style in ASL format.
Definition: Node.cpp:746
bool visible() const
Check whether the current Node is visible in the layer stack.
Definition: Node.cpp:510
bool removeChildNode(Node *child)
removeChildNode removes the given node from the list of children.
Definition: Node.cpp:276
The TransformMask class A transform mask is a mask type node that can be used to store transformation...
Definition: TransformMask.h:22
QPoint position() const
position returns the position of the paint device of this node.
Definition: Node.cpp:621
QString colorDepth() const
colorDepth A string describing the color depth of the image:
Definition: Node.cpp:307
void rotateNode(double radians)
rotateNode rotate this layer by the given radians.
Definition: Node.cpp:709
The SelectionMask class A selection mask is a mask type node that can be used to store selections.
Definition: SelectionMask.h:26
QRect bounds() const
bounds return the exact bounds of the node's paint device
Definition: Node.cpp:608
void enableAnimation() const
enableAnimation make the current layer animated, so it can have frames.
Definition: Node.cpp:360
int bottom() const const
The CloneLayer class A clone layer is a layer that takes a reference inside the image and shows the e...
Definition: CloneLayer.h:25
static Krita * instance()
instance retrieve the singleton instance of the Application object.
Definition: Krita.cpp:402
QList< Node * > findChildNodes(const QString &name=QString(), bool recursive=false, bool partialMatch=false, const QString &type=QString(), int colorLabelIndex=0) const
findChildNodes
Definition: Node.cpp:219
void setInheritAlpha(bool value)
set the Inherit Alpha flag to the given value
Definition: Node.cpp:397
bool isEmpty() const const
QByteArray pixelDataAtTime(int x, int y, int w, int h, int time) const
pixelDataAtTime a basic function to get pixeldata from an animated node at a given time.
Definition: Node.cpp:553
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...
Definition: TransparencyMask.h:23
void move(int x, int y)
move the pixels to the given x, y location in the image coordinate space.
Definition: Node.cpp:614
Node * mergeDown()
mergeDown merges the given node with the first visible node underneath this node in the layerstack.
Definition: Node.cpp:678
The FillLayer class A fill layer is much like a filter layer in that it takes a name and filter.
Definition: FillLayer.h:24
void setAlphaLocked(bool value)
setAlphaLocked set the layer to value if the node is paint layer.
Definition: Node.cpp:161
bool setPixelData(QByteArray value, int x, int y, int w, int h)
setPixelData writes the given bytes, of which there must be enough, into the Node,...
Definition: Node.cpp:595
The FileLayer class A file layer is a layer that can reference an external image and show said refere...
Definition: FileLayer.h:26
bool addChildNode(Node *child, Node *above)
addChildNode adds the given node in the list of children.
Definition: Node.cpp:258
void setBlendingMode(QString value)
setBlendingMode set the blending mode of the node to the given value
Definition: Node.cpp:178
bool setLayerStyleFromAsl(const QString &asl)
setLayerStyleFromAsl set a new layer style for this node.
Definition: Node.cpp:765
Node * parentNode() const
return the Node that is the parent of the current Node, or 0 if this is the root Node.
Definition: Node.cpp:449
void setPinnedToTimeline(bool pinned) const
Sets whether or not node should be pinned to the Timeline Docker, regardless of selection activity.
Definition: Node.cpp:366
void setColorLabel(int index)
setColorLabel sets a color label index associated to the layer.
Definition: Node.cpp:301
void shearNode(double angleX, double angleY)
shearNode perform a shear operation on this node.
Definition: Node.cpp:730
int height() const const
void resize(int size)
bool isEmpty() const const
const char * constData() const const
bool setColorSpace(const QString &colorModel, const QString &colorDepth, const QString &colorProfile)
setColorSpace convert the node to the given colorspace
Definition: Node.cpp:340
void setCollapsed(bool collapsed)
Sets the state of the node to the value of.
Definition: Node.cpp:384
QList< Channel * > channels() const
channels creates a list of Channel objects that can be used individually to show or hide certain chan...
Definition: Node.cpp:190
The VectorLayer class A vector layer is a special layer that stores and shows vector shapes.
Definition: VectorLayer.h:31
QByteArray pixelData(int x, int y, int w, int h) const
pixelData reads the given rectangle from the Node's paintable pixels, if those exist,...
Definition: Node.cpp:539
QByteArray projectionPixelData(int x, int y, int w, int h) const
projectionPixelData reads the given rectangle from the Node's projection (that is,...
Definition: Node.cpp:575
int length() const const
void scaleNode(QPointF origin, int width, int height, QString strategy)
scaleNode
Definition: Node.cpp:690
QString colorModel() const
colorModel retrieve the current color model of this document:
Definition: Node.cpp:314
The FilterMask class A filter mask, unlike a filter layer, will add a non-destructive filter to the c...
Definition: FilterMask.h:28
QObject * parent() const const
char * data()
The FilterLayer class A filter layer will, when compositing, take the composited image up to the poin...
Definition: FilterLayer.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:09:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 04:09:51 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.