13#include "kritalibkis_export.h"
24class KRITALIBKIS_EXPORT
Node :
public QObject
46 bool alphaLocked()
const;
51 void setAlphaLocked(
bool value);
56 QString blendingMode()
const;
62 void setBlendingMode(QString
value);
92 QList<Node*> findChildNodes(
const QString &name = QString(),
bool recursive =
false,
bool partialMatch =
false,
const QString &type = QString(),
int colorLabelIndex = 0)
const;
100 bool addChildNode(
Node *child,
Node *above);
106 bool removeChildNode(
Node *child);
125 QString colorDepth()
const;
140 QString colorModel()
const;
145 QString colorProfile()
const;
154 bool setColorProfile(
const QString &colorProfile);
177 bool setColorSpace(
const QString &colorModel,
const QString &colorDepth,
const QString &colorProfile);
184 bool animated()
const;
189 void enableAnimation()
const;
195 void setPinnedToTimeline(
bool pinned)
const;
200 bool isPinnedToTimeline()
const;
205 void setCollapsed(
bool collapsed);
210 bool collapsed()
const;
217 int colorLabel()
const;
225 void setColorLabel(
int index);
231 bool inheritAlpha()
const;
236 void setInheritAlpha(
bool value);
247 void setLocked(
bool value);
259 QString name()
const;
264 void setName(QString name);
274 void setOpacity(
int value);
279 Node* parentNode()
const;
304 virtual QString type()
const;
315 bool visible()
const;
320 bool hasKeyframeAtTime(
int frameNumber);
325 void setVisible(
bool visible);
369 QByteArray pixelData(
int x,
int y,
int w,
int h)
const;
380 QByteArray pixelDataAtTime(
int x,
int y,
int w,
int h,
int time)
const;
424 QByteArray projectionPixelData(
int x,
int y,
int w,
int h)
const;
449 bool setPixelData(QByteArray
value,
int x,
int y,
int w,
int h);
460 void move(
int x,
int y);
468 QPoint position()
const;
493 bool save(
const QString &filename,
double xRes,
double yRes,
const InfoObject &exportConfiguration,
const QRect &exportRect = QRect());
518 void scaleNode(QPointF origin,
int width,
int height, QString strategy);
524 void rotateNode(
double radians);
533 void cropNode(
int x,
int y,
int w,
int h);
540 void shearNode(
double angleX,
double angleY);
549 QImage thumbnail(
int w,
int h);
555 QString layerStyleToAsl();
562 bool setLayerStyleFromAsl(
const QString &asl);
574 QUuid uniqueId()
const;
589 void paintLine(
const QPointF pointOne,
590 const QPointF pointTwo,
591 double pressureOne = 1.0,
592 double pressureTwo = 1.0,
629 void paintRectangle(
const QRectF &rect,
672 void paintEllipse(
const QRectF &rect,
693 void paintPath(
const QPainterPath &path,
707 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