28 int type()
const override
38 virtual bool saveToXml(QDomDocument* doc, QDomElement* parentElement,
const QVersionNumber& ver)
const override;
39 virtual bool loadFromXml(
const QDomElement* itemElement,
const QVersionNumber& ver)
override;
41 uint64_t getItemID()
const;
42 void setItemID(uint64_t
id);
44 void setRelativePosition(qreal xp, qreal yp);
45 QPointF getRelativePosition()
const;
46 bool isHaveRelativePosition()
const;
48 void setAttachPoint(DAShapeKeyPoint parentAttachPoint);
50 void setOriginPoint(DAShapeKeyPoint originPoint);
51 DAShapeKeyPoint getOriginPoint()
const;
53 void updatePosition();
55 void setSelectable(
bool on);
58 virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change,
const QVariant& value)
override;