-
Notifications
You must be signed in to change notification settings - Fork 948
Expand file tree
/
Copy pathDataFlowGraphicsScene.hpp
More file actions
44 lines (31 loc) · 895 Bytes
/
DataFlowGraphicsScene.hpp
File metadata and controls
44 lines (31 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#pragma once
#include "BasicGraphicsScene.hpp"
#include "DataFlowGraphModel.hpp"
#include "Export.hpp"
namespace QtNodes {
/// @brief An advanced scene working with data-propagating graphs.
/**
* The class represents a scene that existed in v2.x but built wit the
* new model-view approach in mind.
*/
class NODE_EDITOR_PUBLIC DataFlowGraphicsScene : public BasicGraphicsScene
{
Q_OBJECT
public:
DataFlowGraphicsScene(DataFlowGraphModel &graphModel, QObject *parent = nullptr);
~DataFlowGraphicsScene() = default;
public:
std::vector<NodeId> selectedNodes() const;
public:
QMenu *createSceneMenu(QPointF const scenePos) override;
void sortSceneMenu(bool sortMenu = true);
public Q_SLOTS:
void save() const;
void load();
Q_SIGNALS:
void sceneLoaded();
private:
DataFlowGraphModel &_graphModel;
bool _sortMenu;
};
} // namespace QtNodes