SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | List of all members
smtk::extension::qtObjectArc Class Referenceabstract

An arc between nodes in a diagram that represents an object. More...

#include <qtObjectArc.h>

Inheritance diagram for smtk::extension::qtObjectArc:
[legend]
Collaboration diagram for smtk::extension::qtObjectArc:
[legend]

Public Member Functions

 smtkSuperclassMacro (qtBaseArc)
 
 smtkTypeMacro (smtk::extension::qtObjectArc)
 
template<typename... Args>
 qtObjectArc (Args &&... args)
 
virtual smtk::resource::PersistentObjectobject () 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.
 
qtDiagramGeneratorgenerator () const
 
qtDiagramScenescene () const
 
ArcType arcType () const
 
qtBaseNodepredecessor () const
 
qtBaseNodesuccessor () 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
qtDiagramGeneratorm_generator { nullptr }
 
qtBaseNodem_predecessor { nullptr }
 
qtBaseNodem_successor { nullptr }
 
ArcType m_arcType
 
QPainterPath m_computedPath
 
QPainterPath m_arrowPath
 

Detailed Description

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.


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