2 * SPDX-FileCopyrightText: 2017 Wolthera van Hövell tot Westerflier <[email protected]>
37 explicit VectorLayer(KoShapeControllerBase* shapeController, KisImageSP image, QString name, QObject *parent = 0);
39 ~VectorLayer() override;
40 public Q_SLOTS:
54 QList<Shape *> shapes() const;
61 QString toSvg();
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;
virtual QString type() const
type Krita has several types of nodes, split in layers and masks.
The Shape class The shape class is a wrapper around Krita's vector objects.
The VectorLayer class A vector layer is a special layer that stores and shows vector shapes.