6#ifndef KIS_SHAPE_SELECTION_H
7#define KIS_SHAPE_SELECTION_H
20#include <kritaui_export.h>
57 bool saveSelection(
KoStore * store,
const QRect &imageRect)
const;
59 bool loadSelection(
KoStore * store,
const QRect &imageRect);
78 void moveX(qint32 x)
override;
79 void moveY(qint32 y)
override;
89 void slotMoveShapes(
const QPointF &diff);
97 void setUpdatesEnabled(
bool enabled);
98 bool updatesEnabled()
const;
103 void renderSelection(
KisPaintDeviceSP projection,
const QRect& requestedRect);
123 Q_UNUSED(documentResources);
virtual bool isEmpty() const =0
virtual bool outlineCacheValid() const =0
virtual void renderToProjection(KisPaintDeviceSP projection)=0
virtual void moveY(qint32 y)
virtual KisSelectionComponent * clone(KisSelection *selection)=0
virtual void setResolutionProxy(KisImageResolutionProxySP)
virtual QPainterPath outlineCache() const =0
virtual void recalculateOutlineCache()=0
virtual void moveX(qint32 x)
virtual KUndo2Command * resetToEmpty()
bool supports(const QDomElement &e, KoShapeLoadingContext &context) const override
~KisShapeSelectionFactory() override
KoShape * createDefaultShape(KoDocumentResourceManager *documentResources=0) const override
KoShapeUserData * clone() const override
KisShapeSelectionModel * m_model
KisShapeSelection(const KisShapeSelection &rhs)
KisShapeSelectionModel * initModel(KisImageWSP image, KisSelectionWSP selection)
KisImageResolutionProxySP m_resolutionProxy
void sigMoveShapes(const QPointF &diff)
void paintComponent(QPainter &painter) const override
QTransform transform() const
return the current matrix that contains the rotation/scale/position of this shape