7#include <QtCore/QObject>
9using QtNodes::NodeData;
10using QtNodes::NodeDataType;
11using QtNodes::PortIndex;
12using QtNodes::PortType;
22 unsigned int nPorts(PortType portType)
const override;
23 NodeDataType
dataType(PortType portType, PortIndex portIndex)
const override;
24 std::shared_ptr<NodeData>
outData(PortIndex port)
override;
25 void setInData(std::shared_ptr<NodeData> nodeData, PortIndex port)
override;
36 std::unique_ptr<CanLoadPainter> _painter;
37 uint8_t _currentLoad = 0;
Definition canloadmodel.h:16
void setInData(std::shared_ptr< NodeData > nodeData, PortIndex port) override
Definition canloadmodel.cpp:59
void currentLoad(uint8_t load)
Definition canloadmodel.cpp:70
void frameIn(const QCanBusFrame &frame)
unsigned int nPorts(PortType portType) const override
Definition canloadmodel.cpp:39
NodeDataType dataType(PortType portType, PortIndex portIndex) const override
Definition canloadmodel.cpp:44
std::shared_ptr< NodeData > outData(PortIndex port) override
Definition canloadmodel.cpp:54
QtNodes::NodePainterDelegate * painterDelegate() const override
Definition canloadmodel.cpp:34
CanLoadModel()
Definition canloadmodel.cpp:22
Definition componentmodel.h:37
Direction
The enum class describing frame direction.
Definition datadirection.h:7