SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A graphics item that represents a task dependency or adaptor. More...
#include <qtTaskArc.h>
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 (qtObjectArc) | |
smtkTypeMacro (smtk::extension::qtTaskArc) | |
qtTaskArc (qtDiagramGenerator *generator, qtBaseTaskNode *predecessor, qtBaseTaskNode *successor, QGraphicsItem *parent=nullptr) | |
Construct a dependency arc (of type "task dependency"). | |
qtTaskArc (qtDiagramGenerator *generator, qtBaseTaskNode *predecessor, qtBaseTaskNode *successor, smtk::task::Adaptor *adaptor, QGraphicsItem *parent=nullptr) | |
Construct an adaptor arc (whose type is the adaptor's typeName()). | |
smtk::resource::PersistentObject * | object () const override |
Return the object as required by our parent class. | |
smtk::task::Adaptor * | adaptor () const |
Return the adaptor (or null for "task dependency" arcs). | |
smtk::task::Task * | predecessorTask () const |
Return the endpoint tasks connected by this arc. | |
smtk::task::Task * | successorTask () const |
Public Member Functions inherited from smtk::extension::qtObjectArc | |
smtkSuperclassMacro (qtBaseArc) | |
smtkTypeMacro (smtk::extension::qtObjectArc) | |
template<typename... Args> | |
qtObjectArc (Args &&... args) | |
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. | |
qtDiagramGenerator * | generator () const |
qtDiagramScene * | scene () const |
ArcType | arcType () const |
qtBaseNode * | predecessor () const |
qtBaseNode * | successor () const |
Protected Attributes | |
smtk::task::Adaptor * | m_adaptor { nullptr } |
Protected Attributes inherited from smtk::extension::qtBaseArc | |
qtDiagramGenerator * | m_generator { nullptr } |
qtBaseNode * | m_predecessor { nullptr } |
qtBaseNode * | m_successor { nullptr } |
ArcType | m_arcType |
QPainterPath | m_computedPath |
QPainterPath | m_arrowPath |
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. | |
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.