136 virtual KoShape* cloneShape()
const;
150 KoShape* cloneShapeAndBakeAbsoluteTransform()
const;
159 virtual void paint(QPainter &painter)
const = 0;
166 virtual void paintStroke(QPainter &painter)
const;
173 virtual void paintMarkers(QPainter &painter)
const;
182 void scale(qreal sx, qreal sy);
191 void rotate(qreal angle);
197 qreal rotation()
const;
207 void shear(qreal sx, qreal sy);
218 virtual void setSize(
const QSizeF &size);
227 virtual QSizeF size()
const;
234 virtual void setPosition(
const QPointF &position);
241 QPointF position()
const;
248 virtual bool hitTest(
const QPointF &position)
const;
257 virtual QRectF boundingRect()
const;
271 QRectF absoluteOutlineRect()
const;
331 void setInheritBackground(
bool value);
337 bool inheritBackground()
const;
345 virtual bool hasTransparency()
const;
351 void setTransparency(qreal transparency);
357 qreal transparency(
bool recursive=
false)
const;
366 qint16 zIndex()
const;
379 void setZIndex(qint16 zIndex);
398 void setVisible(
bool on);
407 bool isVisible(
bool recursive =
true)
const;
416 void setPrintable(
bool on);
426 bool isPrintable()
const;
434 void setSelectable(
bool selectable);
441 bool isSelectable()
const;
450 void setGeometryProtected(
bool on);
459 bool isGeometryProtected()
const;
467 void setContentProtected(
bool protect);
475 bool isContentProtected()
const;
496 bool inheritsTransformFromAny(
const QList<KoShape*> ancestorsInQuestion)
const;
501 bool hasCommonParent(
const KoShape *shape)
const;
510 virtual void update()
const;
521 virtual void updateAbsolute(
const QRectF &rect)
const;
526 ChildZParentChild = ChildZDefault,
540 virtual ChildZOrderPolicy childZOrderPolicy();
556 virtual QPainterPath outline()
const;
565 virtual QRectF outlineRect()
const;
584 void setInheritStroke(
bool value);
590 bool inheritStroke()
const;
606 virtual void setPaintOrder(PaintOrder first, PaintOrder second);
625 void setInheritPaintOrder(
bool value);
631 bool inheritPaintOrder()
const;
651 void setKeepAspectRatio(
bool keepAspect);
659 bool keepAspectRatio()
const;
702 QString shapeId()
const;
710 void setShapeId(
const QString &
id);
718 QTransform absoluteTransformation()
const;
729 void applyAbsoluteTransformation(
const QTransform &matrix);
735 void setTransformation(
const QTransform &matrix);
738 QTransform transformation()
const;
747 void applyTransformation(
const QTransform &matrix);
755 void copySettings(
const KoShape *shape);
763 static KisHandlePainterHelper createHandlePainterHelperDocument(QPainter *painter,
KoShape *shape, qreal handleRadius,
int decorationThickness);
770 QPointF shapeToDocument(
const QPointF &point)
const;
777 QRectF shapeToDocument(
const QRectF &rect)
const;
784 QPointF documentToShape(
const QPointF &point)
const;
791 QRectF documentToShape(
const QRectF &rect)
const;
797 QString name()
const;
803 void setName(
const QString &name);
808 void notifyChanged();
822 virtual void waitUntilReady(
bool asynchronous =
true)
const;
825 virtual bool isShapeEditable(
bool recursive =
true)
const;
839 bool addDependee(
KoShape *shape);
845 void removeDependee(
KoShape *shape);
848 bool hasDependee(
KoShape *shape)
const;
865 void setAdditionalAttribute(
const QString &name,
const QString &
value);
872 void removeAdditionalAttribute(
const QString &name);
881 bool hasAdditionalAttribute(
const QString &name)
const;
890 QString additionalAttribute(
const QString &name)
const;
892 void setAdditionalStyleAttribute(
const char *name,
const QString &
value);
894 void removeAdditionalStyleAttribute(
const char *name);
905 QSet<KoShape*> toolDelegates()
const;
912 void setToolDelegates(
const QSet<KoShape*> &delegates);
917 QString hyperLink ()
const;
923 void setHyperLink(
const QString &hyperLink);
932 virtual void setResolution(qreal xRes, qreal yRes);
942 void registerShape(
KoShape *shape);
943 void unregisterShape(
KoShape *shape);
954 void setSizeImpl(
const QSizeF &size)
const;
971 QTransform transform()
const;
975 QScopedPointer<Private>
d;
978 QSharedDataPointer<SharedData>
s;