SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qtBaseTaskNode_h
11 #define smtk_extension_qtBaseTaskNode_h
13 #include "smtk/extension/qt/diagram/qtBaseObjectNode.h"
15 #include "smtk/common/TypeContainer.h"
19 #include <QGraphicsItem>
20 #include <QGraphicsScene>
22 class QAbstractItemModel;
23 class QGraphicsTextItem;
38 class qtDiagramGenerator;
46 Q_PROPERTY(
OutlineStyle outlineStyle READ outlineStyle WRITE setOutlineStyle);
62 QGraphicsItem* parent =
nullptr);
75 virtual void setOutlineStyle(OutlineStyle cs);
76 OutlineStyle outlineStyle()
const {
return m_outlineStyle; }
79 bool isActive()
const;
88 SMTK_DEPRECATED_IN_24_01(
"Override or call dataUpdated() from qtBaseNode instead.")
89 virtual
void updateToMatchModifiedTask() { this->dataUpdated(); };
93 OutlineStyle m_outlineStyle{ OutlineStyle::Normal };
99 #endif // smtk_extension_qtBaseTaskNode_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
State
The set of states that a task may take on.
Definition: State.h:29
OutlineStyle
Determine how the border of the node's visual representation should be rendered.
Definition: qtBaseTaskNode.h:53
smtk::task::Task * task() const
Return the task this node represents.
Definition: qtBaseTaskNode.h:72
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
A Graphical Item that represents a persistent object as a node in a scene.
Definition: qtBaseObjectNode.h:27
A Graphical Item that represents a task as a node in a scene.
Definition: qtBaseTaskNode.h:43
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
Task is a base class for all SMTK tasks.
Definition: Task.h:73
A base class that maintains a diagram in the face of operations which modify the state of the diagram...
Definition: qtDiagramGenerator.h:41
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:39