135 virtual KoShape* cloneShape()
const;
149 KoShape* cloneShapeAndBakeAbsoluteTransform()
const;
158 virtual void paint(QPainter &painter)
const = 0;
165 virtual void paintStroke(QPainter &painter)
const;
172 virtual void paintMarkers(QPainter &painter)
const;
181 void scale(qreal sx, qreal sy);
190 void rotate(qreal angle);
196 qreal rotation()
const;
206 void shear(qreal sx, qreal sy);
217 virtual void setSize(
const QSizeF &size);
226 virtual QSizeF size()
const;
233 virtual void setPosition(
const QPointF &position);
240 QPointF position()
const;
247 virtual bool hitTest(
const QPointF &position)
const;
256 virtual QRectF boundingRect()
const;
270 QRectF absoluteOutlineRect()
const;
330 void setInheritBackground(
bool value);
336 bool inheritBackground()
const;
344 virtual bool hasTransparency()
const;
350 void setTransparency(qreal transparency);
356 qreal transparency(
bool recursive=
false)
const;
365 qint16 zIndex()
const;
378 void setZIndex(qint16 zIndex);
397 void setVisible(
bool on);
406 bool isVisible(
bool recursive =
true)
const;
415 void setPrintable(
bool on);
425 bool isPrintable()
const;
433 void setSelectable(
bool selectable);
440 bool isSelectable()
const;
449 void setGeometryProtected(
bool on);
458 bool isGeometryProtected()
const;
466 void setContentProtected(
bool protect);
474 bool isContentProtected()
const;
495 bool inheritsTransformFromAny(
const QList<KoShape*> ancestorsInQuestion)
const;
500 bool hasCommonParent(
const KoShape *shape)
const;
509 virtual void update()
const;
520 virtual void updateAbsolute(
const QRectF &
rect)
const;
525 ChildZParentChild = ChildZDefault,
539 virtual ChildZOrderPolicy childZOrderPolicy();
555 virtual QPainterPath outline()
const;
564 virtual QRectF outlineRect()
const;
583 void setInheritStroke(
bool value);
589 bool inheritStroke()
const;
605 virtual void setPaintOrder(PaintOrder first, PaintOrder second);
624 void setInheritPaintOrder(
bool value);
630 bool inheritPaintOrder()
const;
650 void setKeepAspectRatio(
bool keepAspect);
658 bool keepAspectRatio()
const;
701 QString shapeId()
const;
709 void setShapeId(
const QString &
id);
717 QTransform absoluteTransformation()
const;
728 void applyAbsoluteTransformation(
const QTransform &matrix);
734 void setTransformation(
const QTransform &matrix);
737 QTransform transformation()
const;
746 void applyTransformation(
const QTransform &matrix);
754 void copySettings(
const KoShape *shape);
762 static KisHandlePainterHelper createHandlePainterHelperDocument(QPainter *painter,
KoShape *shape, qreal handleRadius,
int decorationThickness);
769 QPointF shapeToDocument(
const QPointF &point)
const;
776 QRectF shapeToDocument(
const QRectF &
rect)
const;
783 QPointF documentToShape(
const QPointF &point)
const;
790 QRectF documentToShape(
const QRectF &
rect)
const;
796 QString name()
const;
802 void setName(
const QString &name);
807 void notifyChanged();
821 virtual void waitUntilReady(
bool asynchronous =
true)
const;
824 virtual bool isShapeEditable(
bool recursive =
true)
const;
838 bool addDependee(
KoShape *shape);
844 void removeDependee(
KoShape *shape);
847 bool hasDependee(
KoShape *shape)
const;
864 void setAdditionalAttribute(
const QString &name,
const QString &
value);
871 void removeAdditionalAttribute(
const QString &name);
880 bool hasAdditionalAttribute(
const QString &name)
const;
889 QString additionalAttribute(
const QString &name)
const;
891 void setAdditionalStyleAttribute(
const char *name,
const QString &
value);
893 void removeAdditionalStyleAttribute(
const char *name);
904 QSet<KoShape*> toolDelegates()
const;
911 void setToolDelegates(
const QSet<KoShape*> &delegates);
916 QString hyperLink ()
const;
922 void setHyperLink(
const QString &hyperLink);
931 virtual void setResolution(qreal xRes, qreal yRes);
941 void registerShape(
KoShape *shape);
942 void unregisterShape(
KoShape *shape);
953 void setSizeImpl(
const QSizeF &size)
const;
970 QTransform transform()
const;
974 QScopedPointer<Private>
d;
977 QSharedDataPointer<SharedData>
s;