18 #ifndef QGSCOMPOSERARROW_H 19 #define QGSCOMPOSERARROW_H 71 void setArrowHeadWidth(
double width );
82 Q_DECL_DEPRECATED
void setOutlineWidth(
double width );
87 Q_DECL_DEPRECATED
double outlineWidth()
const;
94 void setStartMarker(
const QString& svgPath );
108 void setEndMarker(
const QString& svgPath );
120 Q_DECL_DEPRECATED
QColor arrowColor()
const;
125 Q_DECL_DEPRECATED
void setArrowColor(
const QColor& c );
141 void setArrowHeadOutlineColor(
const QColor& color );
157 void setArrowHeadFillColor(
const QColor& color );
165 void setArrowHeadOutlineWidth(
const double width );
234 double mArrowHeadWidth;
236 double mStartArrowHeadHeight;
237 double mStopArrowHeadHeight;
246 double mArrowHeadOutlineWidth;
247 QColor mArrowHeadOutlineColor;
248 QColor mArrowHeadFillColor;
252 int mBoundsBehaviour;
259 void adaptItemSceneRect();
261 double computeMarkerMargin()
const;
263 void drawHardcodedMarker(
QPainter* p, MarkerType type );
265 void drawSVGMarker(
QPainter* p, MarkerType type,
const QString& markerPath );
271 void createDefaultLineSymbol();
278 #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 two 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.