SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qtTaskEditor_h
11 #define smtk_extension_qtTaskEditor_h
13 #include "smtk/extension/qt/diagram/qtDiagramGenerator.h"
15 #include "smtk/project/Project.h"
16 #include "smtk/task/Manager.h"
17 #include "smtk/view/Configuration.h"
19 #include "smtk/common/Categories.h"
20 #include "smtk/common/Managers.h"
21 #include "smtk/common/TypeContainer.h"
25 #include "nlohmann/json.hpp"
63 void updateSceneNodes(
64 std::unordered_set<smtk::resource::PersistentObject*>& created,
65 std::unordered_set<smtk::resource::PersistentObject*>& modified,
66 std::unordered_set<smtk::resource::PersistentObject*>& expunged,
71 std::unordered_set<smtk::resource::PersistentObject*>& created,
72 std::unordered_set<smtk::resource::PersistentObject*>& modified,
73 std::unordered_set<smtk::resource::PersistentObject*>& expunged,
78 static std::shared_ptr<smtk::view::Configuration> defaultConfiguration();
81 bool addWorklet(
const std::string& workletName, std::array<double, 2> location);
84 bool acceptDropProposal(QDragEnterEvent* event)
override;
87 void moveDropPoint(QDragMoveEvent* event)
override;
90 void abortDrop(QDragLeaveEvent* event)
override;
93 bool acceptDrop(QDropEvent* event)
override;
136 template<
bool RemoveUnusedArcs>
140 ArcLegendEntries& legendInfo);
144 void updateArcStatus(qtBaseArc* arc);
148 qtTaskPath* m_taskPath{
nullptr };
149 bool m_snapPortsToTask{
false };
150 double m_snapPortOffset{ 0.0 };
151 bool m_drawPortsToTaskCurves{
true };
156 #endif // smtk_extension_qtTaskEditor_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
const qtTaskPath * taskPath() const
Return the task-editor's task breadcrumb.
Definition: qtTaskEditor.h:128
void setSnapPortOffset(double val)
Get/set the offset to be used when snapping task ports nodes with respect to their task nodes.
Definition: qtTaskEditor.h:118
double snapPortOffset() const
Get/set the offset to be used when snapping task ports nodes with respect to their task nodes.
Definition: qtTaskEditor.h:117
std::shared_ptr< smtk::attribute::Attribute > Result
An attribute containing the operation's result.
Definition: Operation.h:81
bool drawPortsToTaskCurves() const
Controls if external task port nodes should have a curve connecting it to their task nodes.
Definition: qtTaskEditor.h:123
A task manager is responsible for creating new tasks.
Definition: Manager.h:75
An interactive widget that display the current path Task descendants.
Definition: qtTaskPath.h:43
Operation is a base class for all SMTK operations.
Definition: Operation.h:64
A widget that displays diagrams of SMTK resources.
Definition: qtDiagram.h:72
A widget that displays SMTK tasks available to users in a diagram.
Definition: qtTaskEditor.h:49
void setSnapPortsToTask(bool val)
Controls if external task port nodes should be snapped with respected to their task nodes using the s...
Definition: qtTaskEditor.h:110
A Graphical Item that represents a task as a node in a scene.
Definition: qtBaseTaskNode.h:44
smtk::common::Singleton< detail::Manager > Manager
The Manager is a singleton interface for registering available plugins to manager instances.
Definition: Manager.h:92
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:167
Configure one item in a view, which may contain children.
Definition: Configuration.h:32
bool snapPortsToTask() const
Controls if external task port nodes should be snapped with respected to their task nodes using the s...
Definition: qtTaskEditor.h:109
Task is a base class for all SMTK tasks.
Definition: Task.h:70
A base class that maintains a diagram in the face of operations which modify the state of the diagram...
Definition: qtDiagramGenerator.h:43
An abstract base class for SMTK resources and their components.
Definition: PersistentObject.h:41
void setDrawPortsToTaskCurves(bool val)
Controls if external task port nodes should have a curve connecting it to their task nodes.
Definition: qtTaskEditor.h:124
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:115