te::process::qt::ConnectorGraphicsItem Class Reference

A GraphicItem to represents connector between two Tasks parameters (hot points). More...

#include <ConnectorGraphicsItem.h>

Inheritance diagram for te::process::qt::ConnectorGraphicsItem:

Public Member Functions

virtual QRectF boundingRect () const
 Virtual function that defines the outer bounds of the item as a rectangle. More...
 
 ConnectorGraphicsItem (const std::string &connectorId, TaskGraphicsItem *taskFrom, HotPointGraphicsItem *hotPointFrom, TaskGraphicsItem *taskTo, HotPointGraphicsItem *hotPointTo)
 Default constructor. More...
 
const std::string getConnectorId () const
 Get function to access connector internal pointer. More...
 
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr)
 Function used to draw the process item. More...
 
void removed ()
 Get function to notify that the connector was removed. More...
 
 ~ConnectorGraphicsItem ()
 Virtual destructor. More...
 

Protected Member Functions

QPainterPath getConnectorArrowPainterPath () const
 
QPainterPath getConnectorPainterPath () const
 Function used to get the hot points position in scene coordinate and create a QPainterPath. More...
 

Protected Attributes

std::string m_connectorId
 TerraLib connector object id. More...
 
HotPointGraphicsItemm_hotPointFrom
 QGraphicsItem that represents FROM HotPoint. More...
 
HotPointGraphicsItemm_hotPointTo
 QGraphicsItem that represents TO HotPoint. More...
 
TaskGraphicsItemm_taskFrom
 QGraphicsItem that represents FROM Task. More...
 
TaskGraphicsItemm_taskTo
 QGraphicsItem that represents TO Task. More...
 

Detailed Description

A GraphicItem to represents connector between two Tasks parameters (hot points).

Definition at line 51 of file ConnectorGraphicsItem.h.

Constructor & Destructor Documentation

◆ ConnectorGraphicsItem()

te::process::qt::ConnectorGraphicsItem::ConnectorGraphicsItem ( const std::string &  connectorId,
TaskGraphicsItem taskFrom,
HotPointGraphicsItem hotPointFrom,
TaskGraphicsItem taskTo,
HotPointGraphicsItem hotPointTo 
)

Default constructor.

Parameters
taskFromQGraophicsItem that represents FROM task
hotPointFromQGraphicsItem that represents FROM hotpoint
taskToQGraophicsItem that represents TO task
hotPointToQGraphicsItem that represents TO hotpoint

◆ ~ConnectorGraphicsItem()

te::process::qt::ConnectorGraphicsItem::~ConnectorGraphicsItem ( )

Virtual destructor.

Member Function Documentation

◆ boundingRect()

virtual QRectF te::process::qt::ConnectorGraphicsItem::boundingRect ( ) const
virtual

Virtual function that defines the outer bounds of the item as a rectangle.

Returns
QRectF for this item.

◆ getConnectorArrowPainterPath()

QPainterPath te::process::qt::ConnectorGraphicsItem::getConnectorArrowPainterPath ( ) const
protected

◆ getConnectorId()

const std::string te::process::qt::ConnectorGraphicsItem::getConnectorId ( ) const

Get function to access connector internal pointer.

◆ getConnectorPainterPath()

QPainterPath te::process::qt::ConnectorGraphicsItem::getConnectorPainterPath ( ) const
protected

Function used to get the hot points position in scene coordinate and create a QPainterPath.

Returns
a valid QPainterPath if connector hotpoints was defined

◆ paint()

virtual void te::process::qt::ConnectorGraphicsItem::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.

◆ removed()

void te::process::qt::ConnectorGraphicsItem::removed ( )

Get function to notify that the connector was removed.

Member Data Documentation

◆ m_connectorId

std::string te::process::qt::ConnectorGraphicsItem::m_connectorId
protected

TerraLib connector object id.

Definition at line 108 of file ConnectorGraphicsItem.h.

◆ m_hotPointFrom

HotPointGraphicsItem* te::process::qt::ConnectorGraphicsItem::m_hotPointFrom
protected

QGraphicsItem that represents FROM HotPoint.

Definition at line 111 of file ConnectorGraphicsItem.h.

◆ m_hotPointTo

HotPointGraphicsItem* te::process::qt::ConnectorGraphicsItem::m_hotPointTo
protected

QGraphicsItem that represents TO HotPoint.

Definition at line 114 of file ConnectorGraphicsItem.h.

◆ m_taskFrom

TaskGraphicsItem* te::process::qt::ConnectorGraphicsItem::m_taskFrom
protected

QGraphicsItem that represents FROM Task.

Definition at line 110 of file ConnectorGraphicsItem.h.

◆ m_taskTo

TaskGraphicsItem* te::process::qt::ConnectorGraphicsItem::m_taskTo
protected

QGraphicsItem that represents TO Task.

Definition at line 113 of file ConnectorGraphicsItem.h.


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