1#ifndef CANSIGNALVIEWERMODEL_H
2#define CANSIGNALVIEWERMODEL_H
6#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;
35 std::unique_ptr<NodePainter> _painter;
Definition cansignalviewermodel.h:16
std::shared_ptr< NodeData > outData(PortIndex port) override
Definition cansignalviewermodel.cpp:55
void sndSignal(const QString &name, const QVariant &val, const Direction &dir)
CanSignalViewerModel()
Definition cansignalviewermodel.cpp:24
QtNodes::NodePainterDelegate * painterDelegate() const override
Definition cansignalviewermodel.cpp:35
unsigned int nPorts(PortType portType) const override
Definition cansignalviewermodel.cpp:40
void setInData(std::shared_ptr< NodeData > nodeData, PortIndex port) override
Definition cansignalviewermodel.cpp:60
NodeDataType dataType(PortType portType, PortIndex portIndex) const override
Definition cansignalviewermodel.cpp:45
Definition componentmodel.h:37
virtual QString name() const override
Used to identify model by data model name.
Definition componentmodel.h:115
Direction
The enum class describing frame direction.
Definition datadirection.h:7