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
7
struct
ComponentInterface
;
8
9
struct
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
16
private
:
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 */
nodepainter.h
CanDbPainter
Definition
candbpainter.h:9
CanDbPainter::paint
virtual void paint(QPainter *painter, QtNodes::NodeGeometry const &geom, QtNodes::NodeDataModel const *model, QtNodes::NodeGraphicsObject const &graphicsObject) override
Definition
candbpainter.cpp:15
ComponentInterface
Interface to be implemented by every component.
Definition
componentinterface.h:15
NodePainter
Definition
nodepainter.h:10
src
common
candbpainter.h
Generated by
1.9.8