CANdevStudio
Development tool for CAN bus simulation
Loading...
Searching...
No Matches
candbpainter.h
Go to the documentation of this file.
1#ifndef __CANDBPAINTER_H
2#define __CANDBPAINTER_H
3
4#include "nodepainter.h"
5#include <QSvgRenderer>
6
8
9struct CanDbPainter : public NodePainter {
10
11 CanDbPainter(const QColor& headerColor, const ComponentInterface* component, qreal size);
12
13 virtual void paint(QPainter* painter, QtNodes::NodeGeometry const& geom, QtNodes::NodeDataModel const* model,
14 QtNodes::NodeGraphicsObject const& graphicsObject) override;
15
16private:
17 const ComponentInterface* _component;
18 QColor _nodeColor;
19 QColor _prevNodeColor;
20 QSvgRenderer _svg;
21 qreal _s;
22 const QColor _lightColor;
23 const QColor _darkColor;
24};
25
26#endif /* !__CANDBPAINTER_H */
Definition candbpainter.h:9
virtual void paint(QPainter *painter, QtNodes::NodeGeometry const &geom, QtNodes::NodeDataModel const *model, QtNodes::NodeGraphicsObject const &graphicsObject) override
Definition candbpainter.cpp:15
Interface to be implemented by every component.
Definition componentinterface.h:15
Definition nodepainter.h:10