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> 
   87        virtual void paint(QPainter* painter, 
const QStyleOptionGraphicsItem* option, QWidget* widget = 
nullptr);
 
An Abstract graphicItem to represents a process Builder item.
 
void setPenStyle(Qt::PenStyle style)
 
void setBrushStyle(Qt::BrushStyle style)
 
void mousePressEvent(QGraphicsSceneMouseEvent *event) override
Receive mouse press events for this item.
 
void setBrushColor(QColor color)
 
void setPenWidth(int width)
 
void hoverMoveEvent(QGraphicsSceneHoverEvent *event) override
Receive hover move events for this item. The default implementation does nothing.
 
virtual ~AbstractGraphicsItem()
Virtual destructor.
 
QPainterPath m_path
Paintr path that represents this item.
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Function used to draw the process item.
 
void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override
Receive mouse release events for this item.
 
HotPointGraphicsItem * getHotPoint(const QPointF &pos)
Function used to get hotpoint given a item position.
 
virtual QRectF boundingRect() const =0
Virtual function that defines the outer bounds of the item as a rectangle.
 
virtual void hotPointPressed(HotPointGraphicsItem *hotpoint)=0
Virtual function used to notify when user clicks over a hotpoint.
 
AbstractGraphicsItem()
Default constructor.
 
std::vector< HotPointGraphicsItem * > m_hotPoints
List of all hotpoints for this item.
 
void setPenColor(QColor color)
 
void hoverLeaveEvent(QGraphicsSceneHoverEvent *event) override
Receive hover leave events for this item. The default implementation calls update().
 
void mouseMoveEvent(QGraphicsSceneMouseEvent *event) override
Receive mouse move events for this item.
 
bool m_drawHotPoints
Flag used to indicate if the hot points has to be painted.
 
void hoverEnterEvent(QGraphicsSceneHoverEvent *event) override
Receive hover enter events for this item. The default implementation calls update().
 
A GraphicItem to represents Task parameters as hot point.