26 #ifndef __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTGRAPHICSITEM_H 
   27 #define __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTGRAPHICSITEM_H 
   29 #include "../../Config.h" 
   33 #include <QGraphicsObject> 
   81         virtual void paint(QPainter* painter, 
const QStyleOptionGraphicsItem* option, QWidget* widget = 
nullptr);
 
A GraphicItem to represents Task parameters as hot point.
 
virtual QRectF boundingRect() const
Virtual function that defines the outer bounds of the item as a rectangle.
 
HotPointGraphicsItem(const QPointF &position, const std::size_t &index, const std::string &taskId)
Default constructor.
 
std::size_t m_index
Parameter index from task.
 
QPointF m_pos
Position that represents this hot point.
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
Function used to draw the process item.
 
QColor m_color
Color used to draw this hotpoint.
 
void setHotPointColor(QColor color)
Function used to define the color used to draw the hotpoint.
 
std::string m_taskId
Task id for this hot point parameter.
 
QPointF getHotPointPos()
Function used to get the position of this hotpoint.
 
std::size_t getHotPointIndex() const
Function used to get the param index from task associated to this hotpoint.
 
~HotPointGraphicsItem()
Virtual destructor.