SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qtGroupingNode_h
11 #define smtk_extension_qtGroupingNode_h
13 #include "smtk/extension/qt/Exports.h"
14 #include "smtk/extension/qt/diagram/qtBaseNode.h"
16 #include "smtk/common/UUID.h"
20 #include <QGraphicsItem>
21 #include <QGraphicsScene>
23 class QAbstractItemModel;
24 class QGraphicsTextItem;
33 class qtDiagramGenerator;
34 class GroupingNodeWidget;
43 Q_INTERFACES(QGraphicsItem);
44 Q_PROPERTY(QPointF pos READ pos WRITE setPos);
45 Q_PROPERTY(qreal rotation READ rotation WRITE setRotation);
54 QGraphicsItem* parent =
nullptr);
57 const std::array<double, 2>& location,
60 QGraphicsItem* parent =
nullptr);
66 QRectF boundingRect()
const override;
69 void dataUpdated()
override;
83 std::string name()
const override;
86 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
override;
89 void hoverEnterEvent(QGraphicsSceneHoverEvent* event)
override;
90 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event)
override;
93 int updateSize()
override;
103 #endif // smtk_extension_qtGroupingNode_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::string::Token groupName() const
Return the group name string-token.
Definition: qtGroupingNode.h:72
Rendering and interaction code for nodes that represent groups of resource and component nodes.
Definition: qtGroupingNode.h:40
A Graphical Item that represents a node connected by arcs in a scene.
Definition: qtBaseNode.h:47
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:148
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:167
A string token identified by an integer.
Definition: Token.h:29
A base class that maintains a diagram in the face of operations which modify the state of the diagram...
Definition: qtDiagramGenerator.h:43