26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_CONNECTORGRAPHICSITEM_H
27 #define __TERRALIB_PROCESS_QT_INTERNAL_CONNECTORGRAPHICSITEM_H
29 #include "../../Config.h"
33 #include <QGraphicsObject>
42 class HotPointGraphicsItem;
43 class TaskGraphicsItem;
93 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget =
nullptr);
A GraphicItem to represents connector between two Tasks parameters (hot points).
TaskGraphicsItem * m_taskFrom
QGraphicsItem that represents FROM Task.
ConnectorGraphicsItem(const std::string &connectorId, TaskGraphicsItem *taskFrom, HotPointGraphicsItem *hotPointFrom, TaskGraphicsItem *taskTo, HotPointGraphicsItem *hotPointTo)
Default constructor.
void removed()
Get function to notify that the connector was removed.
virtual QRectF boundingRect() const
Virtual function that defines the outer bounds of the item as a rectangle.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Function used to draw the process item.
HotPointGraphicsItem * m_hotPointFrom
QGraphicsItem that represents FROM HotPoint.
QPainterPath getConnectorPainterPath() const
Function used to get the hot points position in scene coordinate and create a QPainterPath.
HotPointGraphicsItem * m_hotPointTo
QGraphicsItem that represents TO HotPoint.
std::string m_connectorId
TerraLib connector object id.
QPainterPath getConnectorArrowPainterPath() const
~ConnectorGraphicsItem()
Virtual destructor.
TaskGraphicsItem * m_taskTo
QGraphicsItem that represents TO Task.
const std::string getConnectorId() const
Get function to access connector internal pointer.
A GraphicItem to represents Task parameters as hot point.
A GraphicItem to represents a Task Process Builder item.