SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
An arc between nodes in a diagram that represents an object. More...
#include <qtObjectArc.h>
Public Member Functions | |
smtkSuperclassMacro (qtBaseArc) | |
smtkTypeMacro (smtk::extension::qtObjectArc) | |
template<typename... Args> | |
qtObjectArc (Args &&... args) | |
virtual smtk::resource::PersistentObject * | object () const =0 |
Require subclasses to provide a persistent object. | |
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 |
Additional Inherited Members | |
Public Types inherited from smtk::extension::qtBaseArc | |
using | ArcType = smtk::string::Token |
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. | |
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 | |
qtDiagramGenerator * | m_generator { nullptr } |
qtBaseNode * | m_predecessor { nullptr } |
qtBaseNode * | m_successor { nullptr } |
ArcType | m_arcType |
QPainterPath | m_computedPath |
QPainterPath | m_arrowPath |
An arc between nodes in a diagram that represents an object.
Usually, arcs are rendered between nodes representing persistent objects but the arc itself does not represent a persistent object. However, it is possible for an arc to also represent a persistent object. If it does, it should inherit this class instead of qtBaseArc.