An Abstract graphicItem to represents a process Builder item.
More...
#include <AbstractGraphicsItem.h>
|
virtual QRectF | boundingRect () const =0 |
| Virtual function that defines the outer bounds of the item as a rectangle. More...
|
|
HotPointGraphicsItem * | getHotPoint (const QPointF &pos) |
| Function used to get hotpoint given a item position. More...
|
|
virtual void | hotPointPressed (HotPointGraphicsItem *hotpoint)=0 |
| Virtual function used to notify when user clicks over a hotpoint. More...
|
|
void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) override |
| Receive hover enter events for this item. The default implementation calls update(). More...
|
|
void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) override |
| Receive hover leave events for this item. The default implementation calls update(). More...
|
|
void | hoverMoveEvent (QGraphicsSceneHoverEvent *event) override |
| Receive hover move events for this item. The default implementation does nothing. More...
|
|
void | mouseMoveEvent (QGraphicsSceneMouseEvent *event) override |
| Receive mouse move events for this item. More...
|
|
void | mousePressEvent (QGraphicsSceneMouseEvent *event) override |
| Receive mouse press events for this item. More...
|
|
void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) override |
| Receive mouse release events for this item. More...
|
|
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) |
| Function used to draw the process item. More...
|
|
An Abstract graphicItem to represents a process Builder item.
Definition at line 52 of file AbstractGraphicsItem.h.
◆ AbstractGraphicsItem()
te::process::qt::AbstractGraphicsItem::AbstractGraphicsItem |
( |
| ) |
|
◆ ~AbstractGraphicsItem()
virtual te::process::qt::AbstractGraphicsItem::~AbstractGraphicsItem |
( |
| ) |
|
|
virtual |
◆ boundingRect()
virtual QRectF te::process::qt::AbstractGraphicsItem::boundingRect |
( |
| ) |
const |
|
protectedpure virtual |
◆ getBrush()
QBrush te::process::qt::AbstractGraphicsItem::getBrush |
( |
| ) |
|
◆ getFont()
QFont te::process::qt::AbstractGraphicsItem::getFont |
( |
| ) |
|
◆ getHotPoint()
Function used to get hotpoint given a item position.
\Return Pointer to the hotpoint if in this position has a hotpoint and nullptr in other case.
◆ getPen()
QPen te::process::qt::AbstractGraphicsItem::getPen |
( |
| ) |
|
◆ hotPointPressed()
virtual void te::process::qt::AbstractGraphicsItem::hotPointPressed |
( |
HotPointGraphicsItem * |
hotpoint | ) |
|
|
protectedpure virtual |
Virtual function used to notify when user clicks over a hotpoint.
- Parameters
-
hotpoint | Pointer to the hotpoint pressed. |
Implemented in te::process::qt::TaskGraphicsItem.
◆ hoverEnterEvent()
void te::process::qt::AbstractGraphicsItem::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
Receive hover enter events for this item. The default implementation calls update().
- Parameters
-
◆ hoverLeaveEvent()
void te::process::qt::AbstractGraphicsItem::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
Receive hover leave events for this item. The default implementation calls update().
- Parameters
-
◆ hoverMoveEvent()
void te::process::qt::AbstractGraphicsItem::hoverMoveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
overrideprotected |
Receive hover move events for this item. The default implementation does nothing.
- Parameters
-
◆ mouseMoveEvent()
void te::process::qt::AbstractGraphicsItem::mouseMoveEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
Receive mouse move events for this item.
- Parameters
-
◆ mousePressEvent()
void te::process::qt::AbstractGraphicsItem::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
Receive mouse press events for this item.
- Parameters
-
◆ mouseReleaseEvent()
void te::process::qt::AbstractGraphicsItem::mouseReleaseEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
overrideprotected |
Receive mouse release events for this item.
- Parameters
-
◆ paint()
virtual void te::process::qt::AbstractGraphicsItem::paint |
( |
QPainter * |
painter, |
|
|
const QStyleOptionGraphicsItem * |
option, |
|
|
QWidget * |
widget = nullptr |
|
) |
| |
|
protectedvirtual |
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. |
Reimplemented in te::process::qt::TaskGraphicsItem.
◆ setBrushColor()
void te::process::qt::AbstractGraphicsItem::setBrushColor |
( |
QColor |
color | ) |
|
◆ setBrushStyle()
void te::process::qt::AbstractGraphicsItem::setBrushStyle |
( |
Qt::BrushStyle |
style | ) |
|
◆ setFont()
void te::process::qt::AbstractGraphicsItem::setFont |
( |
QFont |
font | ) |
|
◆ setPenColor()
void te::process::qt::AbstractGraphicsItem::setPenColor |
( |
QColor |
color | ) |
|
◆ setPenStyle()
void te::process::qt::AbstractGraphicsItem::setPenStyle |
( |
Qt::PenStyle |
style | ) |
|
◆ setPenWidth()
void te::process::qt::AbstractGraphicsItem::setPenWidth |
( |
int |
width | ) |
|
◆ m_brush
QBrush te::process::qt::AbstractGraphicsItem::m_brush |
|
protected |
◆ m_drawHotPoints
bool te::process::qt::AbstractGraphicsItem::m_drawHotPoints |
|
protected |
◆ m_font
QFont te::process::qt::AbstractGraphicsItem::m_font |
|
protected |
◆ m_hotPoints
◆ m_path
QPainterPath te::process::qt::AbstractGraphicsItem::m_path |
|
protected |
◆ m_pen
QPen te::process::qt::AbstractGraphicsItem::m_pen |
|
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/AbstractGraphicsItem.h