26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICSITEM_H 27 #define __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICSITEM_H 29 #include "../../Config.h" 33 #include "../capabilities/TaskGraphicalCapabilities.h" 44 class ConnectorGraphicsItem;
65 void resetTaskId(
const std::string& newTaskId);
68 const std::string getTaskId()
const;
89 virtual QRectF boundingRect()
const;
98 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget =
nullptr);
103 virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
108 virtual void dragMoveEvent(QGraphicsSceneDragDropEvent *event)
override;
113 virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent *event)
override;
118 virtual void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
135 #endif // __TERRALIB_PROCESS_QT_INTERNAL_TASKGRAPHICSITEM_H An Abstract graphicItem to represents a process Builder item.
A GraphicItem to represents a Task Process Builder item.
A GraphicItem to represents connector between two Tasks parameters (hot points).
A GraphicItem to represents Task parameters as hot point.
std::unique_ptr< TaskGraphicalCapabilities > m_taskGraphicalCapabilities
A QObject class to handle with process management.
ProcessManager * m_manager
std::vector< ConnectorGraphicsItem * > m_connectors
All connectors that is linked with this task.
std::string m_taskId
Task id that represents this item.