Krita
VectorLayer.cpp
24VectorLayer::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);
171QList<Shape *> VectorLayer::shapesInRect(const QRectF &rect, bool omitHiddenShapes, bool containedMode) const {
176 QList<KoShape *> originalShapes = vector->shapeManager()->shapesAt(rect, omitHiddenShapes, containedMode);
239 KisShapeLayerSP vectorLayer = KisShapeLayerSP(dynamic_cast<KisShapeLayer*>(this->node().data()));
245 KisShapeLayerSP vectorLayer = KisShapeLayerSP(dynamic_cast<KisShapeLayer*>(this->node().data()));
The GroupShape class A group shape is a vector object with child shapes.
Definition GroupShape.h:21
static Krita * instance()
instance retrieve the singleton instance of the Application object.
Definition Krita.cpp:402
QPoint position() const
position returns the position of the paint device of this node.
Definition Node.cpp:621
QRect bounds() const
bounds return the exact bounds of the node's paint device
Definition Node.cpp:608
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
virtual QString type() const override
type Krita has several types of nodes, split in layers and masks.
Definition VectorLayer.cpp:41
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
QString name(StandardShortcut id)
virtual void close() override
const QByteArray & data() const const
virtual bool open(OpenMode flags) override
WriteOnly
T qobject_cast(QObject *object)
QString fromUtf8(QByteArrayView str)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:20:53 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.