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

#include <canloadmodel.h>

Inheritance diagram for CanLoadModel:
Collaboration diagram for CanLoadModel:

Public Slots

void currentLoad (uint8_t load)
 

Signals

void frameIn (const QCanBusFrame &frame)
 
void requestRedraw ()
 
- Signals inherited from ComponentModelInterface
void startSimulation ()
 
void stopSimulation ()
 
void handleDock (QWidget *widget)
 
void simBcastSnd (const QJsonObject &msg, const QVariant &param)
 

Public Member Functions

 CanLoadModel ()
 
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
 
- Public Member Functions inherited from ComponentModel< CanLoad, CanLoadModel >
 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 ComponentInterface & getComponent () 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< CanLoad, CanLoadModel >
CanLoad _component
 
QLabel * _label
 
QString _caption
 
QString _name
 
bool _resizable
 
bool _restored
 
bool _darkMode
 
QtNodes::NodeStyle _nodeStyle
 
std::unique_ptr< QThread > _thread
 
QUuid _id
 

Constructor & Destructor Documentation

◆ CanLoadModel()

CanLoadModel::CanLoadModel ( )

Member Function Documentation

◆ currentLoad

void CanLoadModel::currentLoad ( uint8_t  load)
slot

◆ dataType()

NodeDataType CanLoadModel::dataType ( PortType  portType,
PortIndex  portIndex 
) const
override

◆ frameIn

void CanLoadModel::frameIn ( const QCanBusFrame &  frame)
signal

◆ nPorts()

unsigned int CanLoadModel::nPorts ( PortType  portType) const
override

◆ outData()

std::shared_ptr< NodeData > CanLoadModel::outData ( PortIndex  port)
override

◆ painterDelegate()

QtNodes::NodePainterDelegate * CanLoadModel::painterDelegate ( ) const
override

◆ requestRedraw

void CanLoadModel::requestRedraw ( )
signal

◆ setInData()

void CanLoadModel::setInData ( std::shared_ptr< NodeData >  nodeData,
PortIndex  port 
)
override

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