ICF 3.1.1.10
Technical documentation of ICF Libraries
CReflectedBitmapBase.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef iimg_CReflectedBitmapBase_included
7#define iimg_CReflectedBitmapBase_included
8
9
10// ICF includes
12#include <iimg/CGeneralBitmap.h>
14
15
16namespace iimg
17{
18
19
25 public istd::TCachedUpdateManagerWrap<iimg::CGeneralBitmap>,
26 virtual public IQImageProvider
27{
28public:
33 {
35 };
36
37 // reimplemented (iimg::IQImageProvider)
38 virtual const QImage& GetQImage() const;
39 virtual bool CopyImageFrom(const QImage& image);
40
41protected:
42 virtual bool ConvertFromQImage(const QImage& image) = 0;
43 virtual bool ConvertToQImage(QImage& result) const = 0;
44
45 // reimplmented (istd::TCachedUpdateManagerWrap)
46 virtual bool CalculateCache(const ChangeSet& changeSet);
47
48private:
49 QImage m_image;
50};
51
52
53} // namespace iimg
54
55
56#endif // !iimg_CReflectedBitmapBase_included
57
58
Implementation of bitmap storing internal additionaly QImage object reflecting state of main bitmap a...
virtual bool ConvertToQImage(QImage &result) const =0
virtual bool CalculateCache(const ChangeSet &changeSet)
Calculate cache.
ChangeFlags
Data model change notification flags.
virtual bool ConvertFromQImage(const QImage &image)=0
virtual const QImage & GetQImage() const
Gets a QImage object.
virtual bool CopyImageFrom(const QImage &image)
Copies the image data from a QImage object.
Interface for QImage object provider.
Set of change flags (its IDs).
Definition IChangeable.h:38
Help wrapper class supporting of cached parts.
Contains the system indenendent definitions of image and related themes.
Definition CBitmap.h:21

© Witold Gantzke and Kirill Lepskiy