Krita
VectorLayer.h
37 explicit VectorLayer(KoShapeControllerBase* shapeController, KisImageSP image, QString name, QObject *parent = 0);
73 * check if the position is located within any non-group shape's boundingBox() on the current layer.
81 * get all non-group shapes that the shape's boundingBox() intersects or is contained within a given rectangle on the current layer.
83 * @param omitHiddenShapes true if non-visible() shapes should be omitted, false if they should be included. \p omitHiddenShapes defaults to true.
84 * @param containedMode false if only shapes that are within or intersect with the outline should be included, true if only shapes that are fully contained within the outline should be included. \p containedMode defaults to false
87 QList<Shape *> shapesInRect(const QRectF &rect, bool omitHiddenShapes = true, bool containedMode = false) const;
QPoint position() const
position returns the position of the paint device of this node.
Definition Node.cpp:628
virtual QString type() const
type Krita has several types of nodes, split in layers and masks.
Definition Node.cpp:463
The Shape class The shape class is a wrapper around Krita's vector objects.
Definition Shape.h:38
bool isAntialiased() const
return antialiasing status for the Vector layer
Definition VectorLayer.cpp:237
QList< Shape * > addShapesFromSvg(const QString &svg)
addShapesFromSvg add shapes to the layer from a valid svg.
Definition VectorLayer.cpp:93
QList< Shape * > shapesInRect(const QRectF &rect, bool omitHiddenShapes=true, bool containedMode=false) const
shapeInRect get all non-group shapes that the shape's boundingBox() intersects or is contained within...
Definition VectorLayer.cpp:171
Shape * createGroupShape(const QString &name, QList< Shape * > shapes) const
createGroupShape combine a list of top level shapes into a group.
Definition VectorLayer.cpp:190
void setAntialiased(const bool antialiased)
set antialiasing status for the Vector layer
Definition VectorLayer.cpp:243
Shape * shapeAtPosition(const QPointF &position) const
shapeAtPoint check if the position is located within any non-group shape's boundingBox() on the curre...
Definition VectorLayer.cpp:153
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:51:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.