OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
SvgImagePainter.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11class QSvgRenderer;
12
13namespace ot {
14
18 public:
19 SvgImagePainter(QSvgRenderer* _renderer);
20 virtual ~SvgImagePainter();
21
22 virtual void paintImage(QPainter* _painter, const QRectF& _bounds) const override;
23
24 virtual QSizeF getDefaultImageSize(void) const override;
25
26 private:
27 QSvgRenderer* m_svgRenderer;
28 };
29
30}
#define OT_DECL_NODEFAULT(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:22
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition ImagePainter.h:20
Definition SvgImagePainter.h:15
virtual void paintImage(QPainter *_painter, const QRectF &_bounds) const override
Definition SvgImagePainter.cpp:24
virtual QSizeF getDefaultImageSize(void) const override
Definition SvgImagePainter.cpp:28
SvgImagePainter(QSvgRenderer *_renderer)
Definition SvgImagePainter.cpp:14
virtual ~SvgImagePainter()
Definition SvgImagePainter.cpp:20
Definition Connector.h:8