OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PixmapImagePainter.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11// Qt header
12#include <QtGui/qpixmap.h>
13
14namespace ot {
15
19 public:
20 PixmapImagePainter(const QPixmap& _pixmap);
21 virtual ~PixmapImagePainter();
22
23 virtual void paintImage(QPainter* _painter, const QRectF& _bounds) const override;
24
25 virtual QSizeF getDefaultImageSize(void) const override { return m_pixmap.size().toSizeF(); };
26
27 private:
28 QPixmap m_pixmap;
29 };
30
31}
#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 PixmapImagePainter.h:16
virtual ~PixmapImagePainter()
Definition PixmapImagePainter.cpp:18
virtual QSizeF getDefaultImageSize(void) const override
Definition PixmapImagePainter.h:25
virtual void paintImage(QPainter *_painter, const QRectF &_bounds) const override
Definition PixmapImagePainter.cpp:22
PixmapImagePainter(const QPixmap &_pixmap)
Definition PixmapImagePainter.cpp:12
Definition Connector.h:8