18 #ifndef QGSANNOTATIONITEM_H
19 #define QGSANNOTATIONITEM_H
56 virtual QSizeF minimumFrameSize()
const;
62 Qt::CursorShape cursorShapeForAction( MouseMoveAction moveAction )
const;
65 void setMapPositionFixed(
bool fixed );
68 virtual void setMapPosition(
const QgsPoint& pos );
71 void setFrameSize(
const QSizeF&
size );
74 void setOffsetFromReferencePoint(
const QPointF& offset );
90 virtual void writeXML( QDomDocument& doc )
const = 0;
91 virtual void readXML(
const QDomDocument& doc,
const QDomElement& itemElem ) = 0;
93 void _writeXML( QDomDocument& doc, QDomElement& itemElem )
const;
94 void _readXML(
const QDomDocument& doc,
const QDomElement& annotationElem );
124 void updateBoundingRect();
126 void updateBalloon();
128 void drawFrame( QPainter* p );
129 void drawMarkerSymbol( QPainter* p );
130 void drawSelectionBoxes( QPainter* p );
134 QLineF segment(
int index );
136 QPointF pointOnLineWithDistance(
const QPointF& startPoint,
const QPointF& directionPoint,
double distance )
const;
138 double scaledSymbolSize()
const;
141 #endif // QGSANNOTATIONITEM_H