18 #ifndef QGSCOMPOSERARROW_H
19 #define QGSCOMPOSERARROW_H
67 void setArrowHeadWidth(
double width );
78 Q_DECL_DEPRECATED
void setOutlineWidth(
double width );
83 Q_DECL_DEPRECATED
double outlineWidth()
const;
90 void setStartMarker(
const QString& svgPath );
104 void setEndMarker(
const QString& svgPath );
116 Q_DECL_DEPRECATED
QColor arrowColor()
const;
121 Q_DECL_DEPRECATED
void setArrowColor(
const QColor& c );
137 void setArrowHeadOutlineColor(
const QColor& color );
153 void setArrowHeadFillColor(
const QColor& color );
161 void setArrowHeadOutlineWidth(
const double width );
195 void setMarkerMode( MarkerMode mode );
230 double mArrowHeadWidth;
232 double mStartArrowHeadHeight;
233 double mStopArrowHeadHeight;
240 MarkerMode mMarkerMode;
242 double mArrowHeadOutlineWidth;
243 QColor mArrowHeadOutlineColor;
244 QColor mArrowHeadFillColor;
248 int mBoundsBehaviour;
254 void adaptItemSceneRect();
256 double computeMarkerMargin()
const;
258 void drawHardcodedMarker(
QPainter* p, MarkerType type );
260 void drawSVGMarker(
QPainter* p, MarkerType type,
const QString& markerPath );
266 void createDefaultLineSymbol();
273 #endif // QGSCOMPOSERARROW_H
QgsLineSymbolV2 * lineSymbol()
Returns the line symbol used for drawing the line portion of the arrow.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
An item that draws an arrow between to points.
virtual int type() const override
Return composer item type.
A item that forms part of a map composition.
QColor arrowHeadFillColor() const
Returns the color used to fill the arrow head.
MarkerMode markerMode() const
Returns marker mode, which controls how the arrow endpoints are drawn.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QColor arrowHeadOutlineColor() const
Returns the color used to draw outline around the the arrow head.
QString endMarker() const
Returns the marker drawn at the end of the line.
Graphics scene for map printing.
QString startMarker() const
Returns the marker drawn at the start of the line.
double arrowHeadOutlineWidth() const
Returns the pen width for the outline of the arrow head.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
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 arrowHeadWidth() const
Returns the width of the arrow head in mm.