Krita
VectorLayer.cpp
24 VectorLayer::VectorLayer(KoShapeControllerBase* shapeController, KisImageSP image, QString name, QObject *parent) :
110 QDomDocument dom = SvgParser::createDocumentFromSvg(svgData, &errorMsg, &errorLine, &errorColumn);
133 KUndo2Command *cmd = new KoShapeCreateCommand(document->document()->shapeController(), originalShapes, container);
171 QList<Shape *> VectorLayer::shapesInRect(const QRectF &rect, bool omitHiddenShapes, bool containedMode) const {
176 QList<KoShape *> originalShapes = vector->shapeManager()->shapesAt(rect, omitHiddenShapes, containedMode);
qreal height() const const
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
virtual bool open(QIODevice::OpenMode flags) override
WriteOnly
QString fromUtf8(const char *str, int size)
const QByteArray & data() const const
bool isNull() const const
The Shape class The shape class is a wrapper around Krita's vector objects.
Definition: Shape.h:37
QPoint position() const
position returns the position of the paint device of this node.
Definition: Node.cpp:621
int size() const const
QRect bounds() const
bounds return the exact bounds of the node's paint device
Definition: Node.cpp:608
static Krita * instance()
instance retrieve the singleton instance of the Application object.
Definition: Krita.cpp:402
bool isEmpty() const const
const T & at(int i) const const
bool isEmpty() const const
The GroupShape class A group shape is a vector object with child shapes.
Definition: GroupShape.h:20
QDomElement documentElement() const const
virtual void close() override
QList< Shape * > addShapesFromSvg(const QString &svg)
addShapesFromSvg add shapes to the layer from a valid svg.
Definition: VectorLayer.cpp:93
T & last()
QString name(StandardShortcut id)
QList::iterator begin()
bool contains(QChar ch, Qt::CaseSensitivity cs) const const
QList::iterator end()
Shape * createGroupShape(const QString &name, QList< Shape * > shapes) const
createGroupShape combine a list of top level shapes into a group.
Definition: VectorLayer.cpp:190
virtual QString type() const override
type Krita has several types of nodes, split in layers and masks.
Definition: VectorLayer.cpp:41
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
qreal width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:08:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 04:08:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.