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 );
66 void setMarkerMode( MarkerMode mode );
72 bool writeXML( QDomElement& elem, QDomDocument & doc )
const;
78 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc );
120 void adaptItemSceneRect();
122 double computeMarkerMargin()
const;
124 void drawHardcodedMarker( QPainter* p,
MarkerType type );
126 void drawSVGMarker( QPainter* p,
MarkerType type,
const QString& markerPath );
128 void initGraphicsSettings();
131 #endif // QGSCOMPOSERARROW_H
int mStartXIdx
Considering the rectangle as spanning [x[0], x[1]] x [y[0], y[1]], these indices specify which index ...
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 setArrowColor(const QColor &c)
virtual int type() const
return correct graphics item type.
int mBoundsBehaviour
Indicates QGIS version to mimic bounding box behaviour for.
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