SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A graphics item that represents a task dependency or adaptor. More...
#include <qtTaskPortArc.h>
Public Slots | |
int | updateArcPoints () override |
Recompute points specifying the shape of the arc based on the current endpoint-node positions and geometry. | |
![]() | |
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::PersistentObject * | predecessorObject () const |
Return the endpoint tasks connected by this arc. | |
smtk::task::Port * | successorPort () const |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
using | ArcType = smtk::string::Token |
![]() | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
Draw the arc into the scene. | |
![]() | |
qtDiagramGenerator * | m_generator { nullptr } |
qtBaseNode * | m_predecessor { nullptr } |
qtBaseNode * | m_successor { nullptr } |
ArcType | m_arcType |
QPainterPath | m_computedPath |
QPainterPath | m_arrowPath |
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.