18 #ifndef QGSCOMPOSERARROW_H 19 #define QGSCOMPOSERARROW_H 69 void setArrowHeadWidth(
double width );
80 Q_DECL_DEPRECATED
void setOutlineWidth(
double width );
85 Q_DECL_DEPRECATED
double outlineWidth()
const;
92 void setStartMarker(
const QString& svgPath );
106 void setEndMarker(
const QString& svgPath );
118 Q_DECL_DEPRECATED
QColor arrowColor()
const;
123 Q_DECL_DEPRECATED
void setArrowColor(
const QColor& c );
139 void setArrowHeadOutlineColor(
const QColor& color );
155 void setArrowHeadFillColor(
const QColor& color );
163 void setArrowHeadOutlineWidth(
const double width );
232 double mArrowHeadWidth;
234 double mStartArrowHeadHeight;
235 double mStopArrowHeadHeight;
244 double mArrowHeadOutlineWidth;
245 QColor mArrowHeadOutlineColor;
246 QColor mArrowHeadFillColor;
250 int mBoundsBehaviour;
257 void adaptItemSceneRect();
259 double computeMarkerMargin()
const;
261 void drawHardcodedMarker(
QPainter* p, MarkerType type );
263 void drawSVGMarker(
QPainter* p, MarkerType type,
const QString& markerPath );
269 void createDefaultLineSymbol();
276 #endif // QGSCOMPOSERARROW_H QgsLineSymbolV2 * lineSymbol()
Returns the line symbol used for drawing the line portion of the arrow.
QColor arrowHeadFillColor() const
Returns the color used to fill the arrow head.
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.
double arrowHeadWidth() const
Returns the width of the arrow head in mm.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
QColor arrowHeadOutlineColor() const
Returns the color used to draw outline around the the arrow head.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
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.
Graphics scene for map printing.
MarkerMode markerMode() const
Returns marker mode, which controls how the arrow endpoints are drawn.
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...
QString endMarker() const
Returns the marker drawn at the end of the line.