-
Notifications
You must be signed in to change notification settings - Fork 950
Expand file tree
/
Copy pathstate_node_model.h
More file actions
28 lines (21 loc) · 922 Bytes
/
state_node_model.h
File metadata and controls
28 lines (21 loc) · 922 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
#pragma once
#include <nodes/NodeDataModel>
using QtNodes::NodeData;
using QtNodes::PortIndex;
using QtNodes::PortType;
using QtNodes::NodeDataType;
class StateNodeModel : public QtNodes::NodeDataModel
{
public:
static NodeDataType getTranstitionType();
QString caption() const override;
QString name() const override;
unsigned int nPorts(PortType portType) const override;
NodeDataType dataType(PortType portType, PortIndex portIndex) const override;
ConnectionPolicy portOutConnectionPolicy(PortIndex) const override;
ConnectionPolicy portInConnectionPolicy(PortIndex) const override;
void setInData(std::shared_ptr<NodeData> nodeData, PortIndex port) override;
void setInData(std::vector<std::shared_ptr<NodeData>> nodeData, PortIndex port) override;
std::shared_ptr<NodeData> outData(PortIndex port) override;
QWidget* embeddedWidget() override { return nullptr; }
};