6#ifndef LIBKIS_DOCUMENT_H
7#define LIBKIS_DOCUMENT_H
11#include "kritalibkis_export.h"
36class KRITALIBKIS_EXPORT
Document :
public QObject
67 Q_DECL_DEPRECATED
bool guidesVisible()
const;
73 Q_DECL_DEPRECATED
bool guidesLocked()
const;
85 bool batchmode()
const;
91 void setBatchmode(
bool value);
97 Node* activeNode()
const;
115 Node *nodeByName(
const QString &name)
const;
122 Node *nodeByUniqueID(
const QUuid &
id)
const;
134 QString colorDepth()
const;
149 QString colorModel()
const;
154 QString colorProfile()
const;
164 bool setColorProfile(
const QString &colorProfile);
191 bool setColorSpace(
const QString &colorModel,
const QString &colorDepth,
const QString &colorProfile);
199 QColor backgroundColor();
208 bool setBackgroundColor(
const QColor &color);
253 QString documentInfo()
const;
262 void setDocumentInfo(
const QString &document);
267 QString fileName()
const;
272 void setFileName(QString
value);
282 void setHeight(
int value);
287 QString name()
const;
292 void setName(QString
value);
297 int resolution()
const;
302 void setResolution(
int value);
309 Node* rootNode()
const;
331 void setWidth(
int value);
341 void setXOffset(
int x);
351 void setYOffset(
int y);
364 void setXRes(
double xRes)
const;
376 void setYRes(
double yRes)
const;
410 QByteArray pixelData(
int x,
int y,
int w,
int h)
const;
431 void crop(
int x,
int y,
int w,
int h);
472 bool exportImage(
const QString &filename,
const InfoObject &exportConfiguration);
487 void resizeImage(
int x,
int y,
int w,
int h);
508 void scaleImage(
int w,
int h,
int xres,
int yres, QString strategy);
515 void rotateImage(
double radians);
522 void shearImage(
double angleX,
double angleY);
537 bool saveAs(
const QString &filename);
581 Node* createNode(
const QString &name,
const QString &
nodeType);
589 GroupLayer* createGroupLayer(
const QString &name);
600 FileLayer* createFileLayer(
const QString &name,
const QString fileName,
const QString scalingMethod,
const QString scalingFilter =
"Bicubic");
650 VectorLayer* createVectorLayer(
const QString &name);
670 FilterMask* createFilterMask(
const QString &name,
Filter &filter,
const Node* selection_source);
708 QImage projection(
int x = 0,
int y = 0,
int w = 0,
int h = 0)
const;
717 QImage thumbnail(
int w,
int h)
const;
762 bool tryBarrierLock();
768 void refreshProjection();
775 Q_DECL_DEPRECATED
void setHorizontalGuides(
const QList<qreal> &lines);
781 Q_DECL_DEPRECATED
void setVerticalGuides(
const QList<qreal> &lines);
788 Q_DECL_DEPRECATED
void setGuidesVisible(
bool visible);
795 Q_DECL_DEPRECATED
void setGuidesLocked(
bool locked);
800 bool modified()
const;
806 void setModified(
bool modified);
825 bool importAnimation(
const QList<QString> &files,
int firstFrame,
int step);
831 int framesPerSecond();
836 void setFramesPerSecond(
int fps);
841 void setFullClipRangeStartTime(
int startTime);
847 int fullClipRangeStartTime();
852 void setFullClipRangeEndTime(
int endTime);
858 int fullClipRangeEndTime();
864 int animationLength();
869 void setPlayBackRange(
int start,
int stop);
875 int playBackStartTime();
881 int playBackEndTime();
892 void setCurrentTime(
int time);
905 QString annotationDescription(
const QString &type)
const;
913 QByteArray annotation(
const QString &type);
921 void setAnnotation(
const QString &type,
const QString &description,
const QByteArray &annotation);
927 void removeAnnotation(
const QString &type);
941 void setAutosave(
bool active);
1024 qreal audioLevel()
const;
1030 void setAudioLevel(
const qreal level);
1061 void setOwnsDocument(
bool ownsDocument);
float value(const T *src, size_t ch)
KisMagneticGraph::vertex_descriptor source(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
bool operator==(const KisRegion &lhs, const KisRegion &rhs)
bool operator!=(const KoID &v1, const KoID &v2)
char nodeType(const KoPathPoint *point)
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 Shape class The shape class is a wrapper around Krita's vector objects.
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.