mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
92 lines
3.2 KiB
Plaintext
92 lines
3.2 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/processing/models/qgsmodelarrowitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsModelArrowItem : QObject, QGraphicsPathItem
|
|
{
|
|
%Docstring(signature="appended")
|
|
A link arrow item for use in the model designer.
|
|
|
|
.. warning::
|
|
|
|
Not stable API
|
|
|
|
.. versionadded:: 3.14
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsmodelarrowitem.h"
|
|
%End
|
|
public:
|
|
enum Marker
|
|
{
|
|
Circle,
|
|
ArrowHead,
|
|
};
|
|
|
|
QgsModelArrowItem( QgsModelComponentGraphicItem *startItem, Qt::Edge startEdge, int startIndex, bool startIsOutgoing, Marker startMarker, QgsModelComponentGraphicItem *endItem, Qt::Edge endEdge, int endIndex, bool endIsIncoming, Marker endMarker );
|
|
%Docstring
|
|
Constructor for QgsModelArrowItem, with the specified ``parent`` item.
|
|
|
|
The arrow will link ``startItem`` to ``endItem``, joining the specified ``startEdge`` and ``startIndex``
|
|
to ``endEdge`` and ``endIndex``.
|
|
%End
|
|
|
|
QgsModelArrowItem( QgsModelComponentGraphicItem *startItem, Qt::Edge startEdge, int startIndex, Marker startMarker, QgsModelComponentGraphicItem *endItem, Marker endMarker );
|
|
%Docstring
|
|
Constructor for QgsModelArrowItem, with the specified ``parent`` item.
|
|
|
|
The arrow will link ``startItem`` to ``endItem``, joining the specified ``startEdge`` and ``startIndex``
|
|
to an automatic point on ``endItem``.
|
|
%End
|
|
|
|
QgsModelArrowItem( QgsModelComponentGraphicItem *startItem, Marker startMarker, QgsModelComponentGraphicItem *endItem, Qt::Edge endEdge, int endIndex, Marker endMarker );
|
|
%Docstring
|
|
Constructor for QgsModelArrowItem, with the specified ``parent`` item.
|
|
|
|
The arrow will link ``startItem`` to ``endItem``, joining an automatic point on ``startItem`` to the specified
|
|
``endEdge`` and ``endIndex``.
|
|
%End
|
|
|
|
QgsModelArrowItem( QgsModelComponentGraphicItem *startItem, Marker startMarker, QgsModelComponentGraphicItem *endItem, Marker endMarker );
|
|
%Docstring
|
|
Constructor for QgsModelArrowItem, with the specified ``parent`` item.
|
|
|
|
The arrow will link ``startItem`` to ``endItem``, joining an automatic points on both items.
|
|
%End
|
|
|
|
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0 );
|
|
|
|
|
|
void setPenStyle( Qt::PenStyle style );
|
|
%Docstring
|
|
Sets the pen ``style`` to use for rendering the arrow line.
|
|
%End
|
|
|
|
public slots:
|
|
|
|
void updatePath();
|
|
%Docstring
|
|
Updates the cached path linking the two items.
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/processing/models/qgsmodelarrowitem.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.py again *
|
|
************************************************************************/
|