CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
QMLExecutorModel Class Reference

The QMLExecutorModel A model for QML executor component. More...

#include <qmlexecutormodel.h>

Inheritance diagram for QMLExecutorModel:
Collaboration diagram for QMLExecutorModel:

Public Slots

void sendFrame (const quint32 &frameId, const QByteArray &frameData)
 
void sendSignal (const QString &name, const QVariant &value)
 

Signals

void frameReceived (const quint32 &frameId, const QByteArray &frameData)
 
void signalReceived (const QString &name, const QVariant &value)
 A CAN signal was received.
 
void simulationStarted ()
 not used currently
 
void simulationStopped ()
 not used currently
 
void requestRedraw ()
 not used currently
 
- Signals inherited from ComponentModelInterface
void startSimulation ()
 
void stopSimulation ()
 
void handleDock (QWidget *widget)
 
void simBcastSnd (const QJsonObject &msg, const QVariant &param)
 

Public Member Functions

 QMLExecutorModel ()
 only constructor to satisfy ql
 
unsigned int nPorts (PortType portType) const override
 
NodeDataType dataType (PortType portType, PortIndex portIndex) const override
 
std::shared_ptr< NodeData > outData (PortIndex port) override
 
void setInData (std::shared_ptr< NodeData > nodeData, PortIndex port) override
 
QtNodes::NodePainterDelegate * painterDelegate () const override
 
CANBusModelgetCANBusModel ()
 testing facility
 
- Public Member Functions inherited from ComponentModel< QMLExecutor, QMLExecutorModel >
 ComponentModel ()=default
 
 ComponentModel (const QString &name)
 
virtual ~ComponentModel ()
 
virtual void initModel (QtNodes::Node &node, int nodeCnt, bool darkMode) override
 
virtual QString caption () const override
 Used to get node caption.
 
virtual void setCaption (const QString &caption) override
 Sets model caption and updates widget title.
 
virtual QString name () const override
 Used to identify model by data model name.
 
virtual std::unique_ptr< QtNodes::NodeDataModel > clone () const override
 Creates new node of the same type.
 
virtual QJsonObject save () const override
 Possibility to save node properties.
 
virtual void restore (QJsonObject const &json) override
 Used to restore node configurations.
 
virtual QWidget * embeddedWidget () override
 Used to get widget embedded in Node.
 
virtual bool resizable () const override
 Used to get information if node is resizable.
 
virtual ComponentInterfacegetComponent () override
 Component getter.
 
virtual bool restored () override
 
virtual void setColorMode (bool darkMode) override
 
virtual bool hasSeparateThread () const override
 
void simBcastRcv (const QJsonObject &msg, const QVariant &param) override
 
void simBcastSndSlot (const QJsonObject &msg, const QVariant &param) override
 
- Public Member Functions inherited from ComponentModelInterface
virtual ~ComponentModelInterface ()=default
 

Additional Inherited Members

- Protected Attributes inherited from ComponentModel< QMLExecutor, QMLExecutorModel >
QMLExecutor _component
 
QLabel * _label
 
QString _caption
 
QString _name
 
bool _resizable
 
bool _restored
 
bool _darkMode
 
QtNodes::NodeStyle _nodeStyle
 
std::unique_ptr< QThread > _thread
 
QUuid _id
 

Detailed Description

The QMLExecutorModel A model for QML executor component.

See also
ComponentModel

Constructor & Destructor Documentation

◆ QMLExecutorModel()

QMLExecutorModel::QMLExecutorModel ( )

only constructor to satisfy ql

Member Function Documentation

◆ dataType()

NodeDataType QMLExecutorModel::dataType ( PortType  portType,
PortIndex  portIndex 
) const
override
See also
NodeDataModel::dataType

◆ frameReceived

void QMLExecutorModel::frameReceived ( const quint32 &  frameId,
const QByteArray &  frameData 
)
signal
See also
CANBusModel

◆ getCANBusModel()

CANBusModel * QMLExecutorModel::getCANBusModel ( )

testing facility

Returns
can bus model used to interface with QML

◆ nPorts()

unsigned int QMLExecutorModel::nPorts ( PortType  portType) const
override
See also
NodeDataModel::nPorts

◆ outData()

std::shared_ptr< NodeData > QMLExecutorModel::outData ( PortIndex  port)
override
See also
NodeDataModel::outData

◆ painterDelegate()

QtNodes::NodePainterDelegate * QMLExecutorModel::painterDelegate ( ) const
override
See also
NodeDataModel::painterDelegate

◆ requestRedraw

void QMLExecutorModel::requestRedraw ( )
signal

not used currently

◆ sendFrame

void QMLExecutorModel::sendFrame ( const quint32 &  frameId,
const QByteArray &  frameData 
)
slot
See also
CANBusModel

◆ sendSignal

void QMLExecutorModel::sendSignal ( const QString &  name,
const QVariant &  value 
)
slot
See also
CANBusModel

◆ setInData()

void QMLExecutorModel::setInData ( std::shared_ptr< NodeData >  nodeData,
PortIndex  port 
)
override
See also
NodeDataModel::setInData

◆ signalReceived

void QMLExecutorModel::signalReceived ( const QString &  name,
const QVariant &  value 
)
signal

A CAN signal was received.

Parameters
signalname
signalvalue

◆ simulationStarted

void QMLExecutorModel::simulationStarted ( )
signal

not used currently

◆ simulationStopped

void QMLExecutorModel::simulationStopped ( )
signal

not used currently


The documentation for this class was generated from the following files: