Go to the documentation of this file.
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);
111 #endif // __TERRALIB_PROCESS_QT_INTERNAL_HOTPOINTGRAPHICSITEM_H
~HotPointGraphicsItem()
Virtual destructor.
std::size_t getHotPointIndex() const
Function used to get the param index from task associated to this hotpoint.
virtual QRectF boundingRect() const
Virtual function that defines the outer bounds of the item as a rectangle.
std::size_t m_index
Parameter index from task.
void setHotPointColor(QColor color)
Function used to define the color used to draw the hotpoint.
QPointF getHotPointPos()
Function used to get the position of this hotpoint.
QColor m_color
Color used to draw this hotpoint.
std::string m_taskId
Task id for this hot point parameter.
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.
A GraphicItem to represents Task parameters as hot point.
HotPointGraphicsItem(const QPointF &position, const std::size_t &index, const std::string &taskId)
Default constructor.