A GraphicItem to represents Task parameters as hot point.
More...
#include <HotPointGraphicsItem.h>
|
virtual QRectF | boundingRect () const |
| Virtual function that defines the outer bounds of the item as a rectangle. More...
|
|
std::size_t | getHotPointIndex () const |
| Function used to get the param index from task associated to this hotpoint. More...
|
|
QPointF | getHotPointPos () |
| Function used to get the position of this hotpoint. More...
|
|
| HotPointGraphicsItem (const QPointF &position, const std::size_t &index, const std::string &taskId) |
| Default constructor. More...
|
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) |
| Function used to draw the process item. More...
|
|
void | setHotPointColor (QColor color) |
| Function used to define the color used to draw the hotpoint. More...
|
|
| ~HotPointGraphicsItem () |
| Virtual destructor. More...
|
|
A GraphicItem to represents Task parameters as hot point.
Definition at line 48 of file HotPointGraphicsItem.h.
◆ HotPointGraphicsItem()
te::process::qt::HotPointGraphicsItem::HotPointGraphicsItem |
( |
const QPointF & |
position, |
|
|
const std::size_t & |
index, |
|
|
const std::string & |
taskId |
|
) |
| |
◆ ~HotPointGraphicsItem()
te::process::qt::HotPointGraphicsItem::~HotPointGraphicsItem |
( |
| ) |
|
◆ boundingRect()
virtual QRectF te::process::qt::HotPointGraphicsItem::boundingRect |
( |
| ) |
const |
|
virtual |
Virtual function that defines the outer bounds of the item as a rectangle.
- Returns
- QRectF for this item.
◆ getHotPointIndex()
std::size_t te::process::qt::HotPointGraphicsItem::getHotPointIndex |
( |
| ) |
const |
Function used to get the param index from task associated to this hotpoint.
- Returns
- The m_index attribute value
◆ getHotPointPos()
QPointF te::process::qt::HotPointGraphicsItem::getHotPointPos |
( |
| ) |
|
Function used to get the position of this hotpoint.
- Returns
- A hotpoint position inside the TaskGraphicsItem.
◆ paint()
virtual void te::process::qt::HotPointGraphicsItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
virtual |
Function used to draw the process item.
- Parameters
-
painter | Qt Painter used to draw the process item. |
option | Qt style options used to draw the process item. |
◆ setHotPointColor()
void te::process::qt::HotPointGraphicsItem::setHotPointColor |
( |
QColor |
color | ) |
|
Function used to define the color used to draw the hotpoint.
- Parameters
-
◆ m_color
QColor te::process::qt::HotPointGraphicsItem::m_color |
|
protected |
◆ m_index
std::size_t te::process::qt::HotPointGraphicsItem::m_index |
|
protected |
◆ m_pos
QPointF te::process::qt::HotPointGraphicsItem::m_pos |
|
protected |
◆ m_taskId
std::string te::process::qt::HotPointGraphicsItem::m_taskId |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/process/qt/graphics/HotPointGraphicsItem.h