te::process::qt::HotPointGraphicsItem Class Reference

A GraphicItem to represents Task parameters as hot point. More...

#include <HotPointGraphicsItem.h>

Inheritance diagram for te::process::qt::HotPointGraphicsItem:

Public Member Functions

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...
 

Protected Attributes

QColor m_color
 Color used to draw this hotpoint. More...
 
std::size_t m_index
 Parameter index from task. More...
 
QPointF m_pos
 Position that represents this hot point. More...
 
std::string m_taskId
 Task id for this hot point parameter. More...
 

Detailed Description

A GraphicItem to represents Task parameters as hot point.

Definition at line 48 of file HotPointGraphicsItem.h.

Constructor & Destructor Documentation

◆ HotPointGraphicsItem()

te::process::qt::HotPointGraphicsItem::HotPointGraphicsItem ( const QPointF &  position,
const std::size_t &  index,
const std::string &  taskId 
)

Default constructor.

◆ ~HotPointGraphicsItem()

te::process::qt::HotPointGraphicsItem::~HotPointGraphicsItem ( )

Virtual destructor.

Member Function Documentation

◆ 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
painterQt Painter used to draw the process item.
optionQt 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
colorQt color value.

Member Data Documentation

◆ m_color

QColor te::process::qt::HotPointGraphicsItem::m_color
protected

Color used to draw this hotpoint.

Definition at line 105 of file HotPointGraphicsItem.h.

◆ m_index

std::size_t te::process::qt::HotPointGraphicsItem::m_index
protected

Parameter index from task.

Definition at line 101 of file HotPointGraphicsItem.h.

◆ m_pos

QPointF te::process::qt::HotPointGraphicsItem::m_pos
protected

Position that represents this hot point.

Definition at line 99 of file HotPointGraphicsItem.h.

◆ m_taskId

std::string te::process::qt::HotPointGraphicsItem::m_taskId
protected

Task id for this hot point parameter.

Definition at line 103 of file HotPointGraphicsItem.h.


The documentation for this class was generated from the following file: