ACF $AcfVersion:0$
CReflectedBitmapBase.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// ACF includes
9
10
11namespace iimg
12{
13
14
23 public istd::TCachedUpdateManagerWrap<iimg::CGeneralBitmap>,
24 virtual public IQImageProvider
25{
26public:
31 {
33 };
34
35 // reimplemented (iimg::IQImageProvider)
36 virtual const QImage& GetQImage() const override;
37 virtual bool CopyImageFrom(const QImage& image) override;
38
39protected:
40 virtual bool ConvertFromQImage(const QImage& image) = 0;
41 virtual bool ConvertToQImage(QImage& result) const = 0;
42
43 // reimplmented (istd::TCachedUpdateManagerWrap)
44 virtual bool CalculateCache(const ChangeSet& changeSet) override;
45
46private:
47 QImage m_image;
48};
49
50
51} // namespace iimg
52
53
54
55
Implementation of bitmap storing internal additionaly QImage object reflecting state of main bitmap a...
virtual bool ConvertToQImage(QImage &result) const =0
virtual const QImage & GetQImage() const override
Gets a QImage object.
virtual bool CalculateCache(const ChangeSet &changeSet) override
Calculate cache.
ChangeFlags
Data model change notification flags.
virtual bool ConvertFromQImage(const QImage &image)=0
virtual bool CopyImageFrom(const QImage &image) override
Copies the image data from a QImage object.
Interface for QImage object provider.
Set of change flags (its IDs).
Definition IChangeable.h:36
Help wrapper class supporting of cached parts.
Contains the system indenendent definitions of image and related themes.
Definition CBitmap.h:17