SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Slots | Public Member Functions | List of all members
smtk::extension::qtTaskPortArc Class Reference

A graphics item that represents a task dependency or adaptor. More...

#include <qtTaskPortArc.h>

Inheritance diagram for smtk::extension::qtTaskPortArc:
[legend]
Collaboration diagram for smtk::extension::qtTaskPortArc:
[legend]

Public Slots

int updateArcPoints () override
 Recompute points specifying the shape of the arc based on the current endpoint-node positions and geometry.
 
- Public Slots inherited from smtk::extension::qtBaseArc
virtual int updateArcPoints ()=0
 Recompute points specifying the shape of the arc based on the current endpoint-node positions and geometry.
 

Public Member Functions

 smtkSuperclassMacro (qtBaseArc)
 
 smtkTypeMacro (smtk::extension::qtTaskPortArc)
 
 qtTaskPortArc (qtDiagramGenerator *generator, qtBaseObjectNode *predecessor, qtTaskPortNode *successor, QGraphicsItem *parent=nullptr)
 Construct a dependency arc (of type "task dependency").
 
smtk::resource::PersistentObjectpredecessorObject () const
 Return the endpoint tasks connected by this arc.
 
smtk::task::PortsuccessorPort () const
 
- Public Member Functions inherited from smtk::extension::qtBaseArc
 smtkSuperclassMacro (QGraphicsPathItem)
 
 smtkTypeMacroBase (smtk::extension::qtBaseArc)
 
 qtBaseArc (qtDiagramGenerator *generator, qtBaseNode *predecessor, qtBaseNode *successor, ArcType arcType, QGraphicsItem *parent=nullptr)
 Construct an arc. More...
 
QRectF boundingRect () const override
 Get the bounding box of the node, which includes the border width and the label.
 
qtDiagramGeneratorgenerator () const
 
qtDiagramScenescene () const
 
ArcType arcType () const
 
qtBaseNodepredecessor () const
 
qtBaseNodesuccessor () const
 

Additional Inherited Members

- Public Types inherited from smtk::extension::qtBaseArc
using ArcType = smtk::string::Token
 
- Protected Member Functions inherited from smtk::extension::qtBaseArc
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override
 Draw the arc into the scene.
 
- Protected Attributes inherited from smtk::extension::qtBaseArc
qtDiagramGeneratorm_generator { nullptr }
 
qtBaseNodem_predecessor { nullptr }
 
qtBaseNodem_successor { nullptr }
 
ArcType m_arcType
 
QPainterPath m_computedPath
 
QPainterPath m_arrowPath
 

Detailed Description

A graphics item that represents a task dependency or adaptor.

These arcs are always drawn as curves normal to the rounded rectangle used by default to render the task and have an arrow indicating the direction of information propagation.


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