6#ifndef KIS_PIXEL_SELECTION_H_
7#define KIS_PIXEL_SELECTION_H_
10#include <QPainterPath>
17#include <kritaimage_export.h>
51 bool read(QIODevice *stream);
56 void select(
const QRect & r, quint8 selectedness =
MAX_SELECTED);
68 void clear(
const QRect & r);
74 void clear()
override;
87 bool isTotallyUnselected(
const QRect & r)
const;
93 QRect selectedRect()
const;
99 QRect selectedExactRect()
const;
110 void moveTo(
const QPoint& pt)
override;
118 void setOutlineCache(
const QPainterPath &cache);
119 void invalidateOutlineCache();
124 void recalculateThumbnailImage(
const QColor &maskColor);
bool read(QIODevice *stream)
virtual const KoColorSpace * compositionSourceColorSpace() const
QRect exactBounds() const
void moveTo(qint32 x, qint32 y)
virtual bool isEmpty() const =0
virtual void renderToProjection(KisPaintDeviceSP projection)=0
virtual KisSelectionComponent * clone(KisSelection *selection)=0
virtual void recalculateOutlineCache()=0
KisSharedPtr< KisDefaultBoundsBase > KisDefaultBoundsBaseSP
const quint8 MAX_SELECTED
KisWeakSharedPtr< KisSelection > KisSelectionWSP
bool thumbnailImageValid() const
bool outlineCacheValid() const override
KisSelectionWSP parentSelection() const
QPainterPath outlineCache() const override
QImage thumbnailImage() const
QTransform thumbnailImageTransform() const