6#ifndef KIS_SELECTION_H_
7#define KIS_SELECTION_H_
12#include "kritaimage_export.h"
39 struct ChangeShapeSelectionCommand;
84 bool hasNonEmptyPixelSelection()
const;
85 bool hasNonEmptyShapeSelection()
const;
86 bool hasShapeSelection()
const;
88 bool outlineCacheValid()
const;
89 QPainterPath outlineCache()
const;
90 void recalculateOutlineCache();
96 bool thumbnailImageValid()
const;
101 void recalculateThumbnailImage(
const QColor &maskColor);
106 QImage thumbnailImage()
const;
112 QTransform thumbnailImageTransform()
const;
164 void updateProjection(
const QRect&
rect);
165 void updateProjection();
167 void setVisible(
bool visible);
174 bool isTotallyUnselected(
const QRect & r)
const;
176 QRect selectedRect()
const;
186 QRect selectedExactRect()
const;
207 void notifySelectionChanged();
214 void requestCompressedProjectionUpdate(
const QRect &rc);
218 quint8 selected(qint32 x, qint32 y)
const;
223 friend class KisSelectionTest;
224 friend class KisMaskTest;
225 friend class KisAdjustmentLayerTest;
KisShared & operator=(const KisShared &)
KisNodeWSP parentNode() const
KisPixelSelectionSP pixelSelection() const
KisSelectionComponent * shapeSelection() const
KisImageResolutionProxySP resolutionProxy() const