13#include "kritalibkis_export.h"
23class KRITALIBKIS_EXPORT
Node :
public QObject
45 bool alphaLocked()
const;
50 void setAlphaLocked(
bool value);
55 QString blendingMode()
const;
61 void setBlendingMode(QString
value);
91 QList<Node*> findChildNodes(
const QString &name = QString(),
bool recursive =
false,
bool partialMatch =
false,
const QString &type = QString(),
int colorLabelIndex = 0)
const;
99 bool addChildNode(
Node *child,
Node *above);
105 bool removeChildNode(
Node *child);
124 QString colorDepth()
const;
139 QString colorModel()
const;
144 QString colorProfile()
const;
153 bool setColorProfile(
const QString &colorProfile);
176 bool setColorSpace(
const QString &colorModel,
const QString &colorDepth,
const QString &colorProfile);
183 bool animated()
const;
188 void enableAnimation()
const;
194 void setPinnedToTimeline(
bool pinned)
const;
199 bool isPinnedToTimeline()
const;
204 void setCollapsed(
bool collapsed);
209 bool collapsed()
const;
216 int colorLabel()
const;
224 void setColorLabel(
int index);
230 bool inheritAlpha()
const;
235 void setInheritAlpha(
bool value);
246 void setLocked(
bool value);
258 QString name()
const;
263 void setName(QString name);
273 void setOpacity(
int value);
278 Node* parentNode()
const;
303 virtual QString type()
const;
314 bool visible()
const;
319 bool hasKeyframeAtTime(
int frameNumber);
324 void setVisible(
bool visible);
368 QByteArray pixelData(
int x,
int y,
int w,
int h)
const;
379 QByteArray pixelDataAtTime(
int x,
int y,
int w,
int h,
int time)
const;
423 QByteArray projectionPixelData(
int x,
int y,
int w,
int h)
const;
448 bool setPixelData(QByteArray
value,
int x,
int y,
int w,
int h);
459 void move(
int x,
int y);
467 QPoint position()
const;
492 bool save(
const QString &filename,
double xRes,
double yRes,
const InfoObject &exportConfiguration,
const QRect &exportRect = QRect());
517 void scaleNode(QPointF origin,
int width,
int height, QString strategy);
523 void rotateNode(
double radians);
532 void cropNode(
int x,
int y,
int w,
int h);
539 void shearNode(
double angleX,
double angleY);
548 QImage thumbnail(
int w,
int h);
554 QString layerStyleToAsl();
561 bool setLayerStyleFromAsl(
const QString &asl);
573 QUuid uniqueId()
const;
588 void paintLine(
const QPointF pointOne,
589 const QPointF pointTwo,
590 double pressureOne = 1.0,
591 double pressureTwo = 1.0,
613 void paintRectangle(
const QRectF &
rect,
656 void paintEllipse(
const QRectF &
rect,
677 void paintPath(
const QPainterPath &path,
691 QString paintAbility();
float value(const T *src, size_t ch)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
bool operator!=(const KoID &v1, const KoID &v2)
QSharedPointer< Node > NodeSP
The CloneLayer class A clone layer is a layer that takes a reference inside the image and shows the e...
The ColorizeMask class A colorize mask is a mask type node that can be used to color in line art.
The FileLayer class A file layer is a layer that can reference an external image and show said refere...
The FillLayer class A fill layer is much like a filter layer in that it takes a name and filter....
The FilterLayer class A filter layer will, when compositing, take the composited image up to the poin...
The FilterMask class A filter mask, unlike a filter layer, will add a non-destructive filter to the c...
The GroupLayer class A group layer is a layer that can contain other layers. In Krita,...
The SelectionMask class A selection mask is a mask type node that can be used to store selections....
The TransparencyMask class A transparency mask is a mask type node that can be used to show and hide ...
The VectorLayer class A vector layer is a special layer that stores and shows vector shapes.
const QString defaultStrokeStyle
const QString defaultFillStyle