mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
232 lines
6.0 KiB
Plaintext
232 lines
6.0 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/composer/qgscomposerarrow.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class QgsComposerArrow: QgsComposerItem
|
|
{
|
|
%Docstring
|
|
An item that draws an arrow between two points.
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgscomposerarrow.h"
|
|
%End
|
|
public:
|
|
|
|
enum MarkerMode
|
|
{
|
|
DefaultMarker,
|
|
NoMarker,
|
|
SVGMarker
|
|
};
|
|
|
|
QgsComposerArrow( QgsComposition *c /TransferThis/ );
|
|
%Docstring
|
|
Constructor
|
|
\param c parent composition
|
|
%End
|
|
|
|
QgsComposerArrow( QPointF startPoint, QPointF stopPoint, QgsComposition *c /TransferThis/ );
|
|
%Docstring
|
|
Constructor
|
|
\param startPoint start point for line
|
|
\param stopPoint end point for line
|
|
\param c parent composition
|
|
%End
|
|
|
|
~QgsComposerArrow();
|
|
|
|
virtual int type() const;
|
|
%Docstring
|
|
Return composer item type.
|
|
:rtype: int
|
|
%End
|
|
|
|
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );
|
|
|
|
%Docstring
|
|
Reimplementation of QCanvasItem.paint - draw on canvas
|
|
%End
|
|
|
|
virtual void setSceneRect( const QRectF &rectangle );
|
|
|
|
%Docstring
|
|
Modifies position of start and endpoint and calls QgsComposerItem.setSceneRect
|
|
%End
|
|
|
|
void setArrowHeadWidth( double width );
|
|
%Docstring
|
|
Sets the width of the arrow head in mm
|
|
\param width width of arrow head
|
|
.. seealso:: arrowHeadWidth
|
|
%End
|
|
|
|
double arrowHeadWidth() const;
|
|
%Docstring
|
|
Returns the width of the arrow head in mm
|
|
:return: width of arrow head
|
|
.. seealso:: setArrowHeadWidth
|
|
:rtype: float
|
|
%End
|
|
|
|
void setStartMarker( const QString &svgPath );
|
|
%Docstring
|
|
Sets the marker to draw at the start of the line
|
|
\param svgPath file path for svg marker graphic to draw
|
|
.. seealso:: startMarker
|
|
.. seealso:: setEndMarker
|
|
%End
|
|
|
|
QString startMarker() const;
|
|
%Docstring
|
|
Returns the marker drawn at the start of the line
|
|
:return: file path for svg marker graphic
|
|
.. seealso:: setStartMarker
|
|
.. seealso:: endMarker
|
|
:rtype: str
|
|
%End
|
|
|
|
void setEndMarker( const QString &svgPath );
|
|
%Docstring
|
|
Sets the marker to draw at the end of the line
|
|
\param svgPath file path for svg marker graphic to draw
|
|
.. seealso:: endMarker
|
|
.. seealso:: setStartMarker
|
|
%End
|
|
|
|
QString endMarker() const;
|
|
%Docstring
|
|
Returns the marker drawn at the end of the line
|
|
:return: file path for svg marker graphic
|
|
.. seealso:: setEndMarker
|
|
.. seealso:: startMarker
|
|
:rtype: str
|
|
%End
|
|
|
|
QColor arrowHeadStrokeColor() const;
|
|
%Docstring
|
|
Returns the color used to draw stroke around the the arrow head.
|
|
:return: arrow head stroke color
|
|
.. seealso:: arrowHeadFillColor
|
|
.. seealso:: setArrowHeadStrokeColor
|
|
.. versionadded:: 2.5
|
|
:rtype: QColor
|
|
%End
|
|
|
|
void setArrowHeadStrokeColor( const QColor &color );
|
|
%Docstring
|
|
Sets the color used to draw the stroke around the arrow head.
|
|
\param color arrow head stroke color
|
|
.. seealso:: setArrowHeadFillColor
|
|
.. seealso:: arrowHeadStrokeColor
|
|
.. versionadded:: 2.5
|
|
%End
|
|
|
|
QColor arrowHeadFillColor() const;
|
|
%Docstring
|
|
Returns the color used to fill the arrow head.
|
|
:return: arrow head fill color
|
|
.. seealso:: arrowHeadStrokeColor
|
|
.. seealso:: setArrowHeadFillColor
|
|
.. versionadded:: 2.5
|
|
:rtype: QColor
|
|
%End
|
|
|
|
void setArrowHeadFillColor( const QColor &color );
|
|
%Docstring
|
|
Sets the color used to fill the arrow head.
|
|
\param color arrow head fill color
|
|
.. seealso:: arrowHeadFillColor
|
|
.. seealso:: setArrowHeadStrokeColor
|
|
.. versionadded:: 2.5
|
|
%End
|
|
|
|
void setArrowHeadStrokeWidth( const double width );
|
|
%Docstring
|
|
Sets the pen width for the stroke of the arrow head
|
|
\param width pen width for arrow head stroke
|
|
.. seealso:: arrowHeadStrokeWidth
|
|
.. seealso:: setArrowHeadStrokeColor
|
|
.. versionadded:: 2.5
|
|
%End
|
|
|
|
double arrowHeadStrokeWidth() const;
|
|
%Docstring
|
|
Returns the pen width for the stroke of the arrow head
|
|
:return: pen width for arrow head stroke
|
|
.. seealso:: setArrowHeadStrokeWidth
|
|
.. seealso:: arrowHeadStrokeColor
|
|
.. versionadded:: 2.5
|
|
:rtype: float
|
|
%End
|
|
|
|
void setLineSymbol( QgsLineSymbol *symbol /Transfer/ );
|
|
%Docstring
|
|
Sets the line symbol used for drawing the line portion of the arrow
|
|
\param symbol line symbol
|
|
.. seealso:: lineSymbol
|
|
.. versionadded:: 2.5
|
|
%End
|
|
|
|
QgsLineSymbol *lineSymbol();
|
|
%Docstring
|
|
Returns the line symbol used for drawing the line portion of the arrow
|
|
:return: line symbol
|
|
.. seealso:: setLineSymbol
|
|
.. versionadded:: 2.5
|
|
:rtype: QgsLineSymbol
|
|
%End
|
|
|
|
MarkerMode markerMode() const;
|
|
%Docstring
|
|
Returns marker mode, which controls how the arrow endpoints are drawn
|
|
:return: marker mode
|
|
.. seealso:: setMarkerMode
|
|
:rtype: MarkerMode
|
|
%End
|
|
|
|
void setMarkerMode( MarkerMode mode );
|
|
%Docstring
|
|
Sets the marker mode, which controls how the arrow endpoints are drawn
|
|
\param mode marker mode
|
|
.. seealso:: setMarkerMode
|
|
%End
|
|
|
|
virtual bool writeXml( QDomElement &elem, QDomDocument &doc ) const;
|
|
|
|
%Docstring
|
|
Stores state in DOM element
|
|
\param elem is DOM element corresponding to 'Composer' tag
|
|
\param doc document
|
|
:rtype: bool
|
|
%End
|
|
|
|
virtual bool readXml( const QDomElement &itemElem, const QDomDocument &doc );
|
|
|
|
%Docstring
|
|
Sets state from DOM document
|
|
\param itemElem is DOM node corresponding to item tag
|
|
\param doc is the document to read
|
|
:rtype: bool
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/core/composer/qgscomposerarrow.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|