18 #ifndef QGSCOMPOSERARROW_H
19 #define QGSCOMPOSERARROW_H
45 void paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
51 void setArrowHeadWidth(
double width );
54 void setOutlineWidth(
double width );
57 void setStartMarker(
const QString& svgPath );
59 void setEndMarker(
const QString& svgPath );
72 bool writeXML( QDomElement& elem, QDomDocument & doc )
const;
78 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc );
112 void adaptItemSceneRect();
114 void drawHardcodedMarker( QPainter* p,
MarkerType type );
116 void drawSVGMarker( QPainter* p,
MarkerType type,
const QString& markerPath );
118 void initGraphicsSettings();
121 #endif // QGSCOMPOSERARROW_H
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)=0
sets state from Dom document
An item that draws an arrow between to points.
A item that forms part of a map composition.
QString mStartMarkerFile
Path to the start marker file.
double outlineWidth() const
MarkerMode markerMode() const
QColor arrowColor() const
MarkerMode mMarkerMode
Default marker, no marker or svg marker.
void setMarkerMode(MarkerMode mode)
void setArrowColor(const QColor &c)
virtual int type() const
return correct graphics item type.
QString endMarker() const
Graphics scene for map printing.
QString startMarker() const
double mArrowHeadWidth
Width of the arrow marker in mm.
QString mEndMarkerFile
Path to the end marker file.
virtual void setSceneRect(const QRectF &rectangle)
Sets this items bound in scene coordinates such that 1 item size units corresponds to 1 scene size un...
double mStartArrowHeadHeight
Height of the arrow marker in mm.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const =0
stores state in Dom element
double mStopArrowHeadHeight
double arrowHeadWidth() const