26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_ABSTRACTGRAPHICSITEM_H 27 #define __TERRALIB_PROCESS_QT_INTERNAL_ABSTRACTGRAPHICSITEM_H 29 #include "../../Config.h" 36 #include <QGraphicsObject> 37 #include <QPainterPath> 78 virtual QRectF boundingRect()
const = 0;
87 virtual void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget =
nullptr);
94 void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
override;
101 void hoverMoveEvent(QGraphicsSceneHoverEvent *event)
override;
108 void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
override;
115 void mousePressEvent(QGraphicsSceneMouseEvent *event)
override;
122 void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
override;
129 void mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
override;
139 void setPenColor(QColor color);
141 void setPenWidth(
int width);
143 void setPenStyle(Qt::PenStyle style);
145 void setBrushColor(QColor color);
147 void setBrushStyle(Qt::BrushStyle style);
149 void setFont(QFont font);
178 #endif // __TERRALIB_PROCESS_QT_INTERNAL_PROCESSSQUAREGRAPHICSITEM_H An Abstract graphicItem to represents a process Builder item.
std::vector< HotPointGraphicsItem * > m_hotPoints
List of all hotpoints for this item.
A GraphicItem to represents Task parameters as hot point.
bool m_drawHotPoints
Flag used to indicate if the hot points has to be painted.
QPainterPath m_path
Paintr path that represents this item.