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

A graphics item that represents an arc between nodes. More...

#include <qtResourceDiagramArc.h>

Inheritance diagram for smtk::extension::qtResourceDiagramArc:
[legend]
Collaboration diagram for smtk::extension::qtResourceDiagramArc:
[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::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.
 
qtDiagramGeneratorgenerator () const
 
qtDiagramScenescene () const
 
ArcType arcType () const
 
qtBaseNodepredecessor () const
 
qtBaseNodesuccessor () 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
qtDiagramGeneratorm_generator { nullptr }
 
qtBaseNodem_predecessor { nullptr }
 
qtBaseNodem_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
 

Detailed Description

A graphics item that represents an arc between nodes.

These arcs are created by qtResourceDiagram to connect any nodes representing components and/or resources.


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