SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
A graphics item that represents an arc between nodes. More...
#include <qtResourceDiagramArc.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 (qtBaseArc) | |
smtkTypeMacro (smtk::extension::qtResourceDiagramArc) | |
qtResourceDiagramArc (qtDiagramGenerator *generator, qtBaseNode *predecessor, qtBaseNode *successor, ArcType arcType, QGraphicsItem *parent=nullptr) | |
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 Member Functions | |
void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override |
Draw the arc. This method is overridden to vary opacity with arc length. | |
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 | |
qreal | m_opacity { 1. } |
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 |
A graphics item that represents an arc between nodes.
These arcs are created by qtResourceDiagram to connect any nodes representing components and/or resources.