21 : m_resolutionProxy(resolutionProxy)
22 , m_parentSelection(selection)
23 , m_shapeSelection(shapeSelection)
24 , m_updatesEnabled(true)
44 const bool resolutionChanged = !
m_resolutionProxy->compareResolution(*newResolutionProxy);
48 if (resolutionChanged) {
70 QRect updateRect = child->
boundingRect().toAlignedRect();
73 updateRect = matrix.mapRect(updateRect);
89 QRect updateRect = child->
boundingRect().toAlignedRect();
97 updateRect = matrix.mapRect(updateRect);
158 changedRect = changedRect.united(child->
boundingRect());
163 changedRect = matrix.mapRect(changedRect);
QSharedPointer< KoShapeStrokeModel > KoShapeStrokeModelSP
void setInheritsTransform(const KoShape *shape, bool inherit) override
void setUpdatesEnabled(bool enabled)
KisShapeSelection * m_shapeSelection
void containerChanged(KoShapeContainer *, KoShape::ChangeType) override
bool isClipped(const KoShape *child) const override
int count() const override
~KisShapeSelectionModel() override
void setShapeSelection(KisShapeSelection *selection)
KisShapeSelectionModel(KisImageResolutionProxySP resolutionProxy, KisSelectionWSP selection, KisShapeSelection *shapeSelection)
void setClipped(const KoShape *child, bool clipping) override
KisImageResolutionProxySP resolutionProxy() const
QMap< KoShape *, QRectF > m_shapeMap
void remove(KoShape *child) override
void add(KoShape *child) override
KisSelectionWSP m_parentSelection
void requestUpdate(const QRect &updateRect)
void childChanged(KoShape *child, KoShape::ChangeType type) override
bool inheritsTransform(const KoShape *shape) const override
bool updatesEnabled() const
QList< KoShape * > shapes() const override
void setResolutionProxy(KisImageResolutionProxySP newResolutionProxy)
KisImageResolutionProxySP m_resolutionProxy
void recalculateOutlineCache() override
KoShapeManager * shapeManager() const
void remove(KoShape *shape)
void addShape(KoShape *shape, KoShapeManager::Repaint repaint=PaintShapeOnAdd)
virtual QRectF boundingRect() const
Get the bounding box of the shape.
virtual void setStroke(KoShapeStrokeModelSP stroke)
virtual void setBackground(QSharedPointer< KoShapeBackground > background)
ChangeType
Used by shapeChanged() to select which change was made.
@ ParentChanged
used after a setParent()
void requestCompressedProjectionUpdate(const QRect &rc)