CReflectedBitmapBase.h
Go to the documentation of this file.
1 #ifndef iimg_CReflectedBitmapBase_included
2 #define iimg_CReflectedBitmapBase_included
3 
4 
5 // ACF includes
7 #include <iimg/CGeneralBitmap.h>
8 #include <iimg/IQImageProvider.h>
9 
10 
11 namespace iimg
12 {
13 
14 
20  public istd::TCachedUpdateManagerWrap<iimg::CGeneralBitmap>,
21  virtual public IQImageProvider
22 {
23 public:
28  {
30  };
31 
32  // reimplemented (iimg::IQImageProvider)
33  virtual const QImage& GetQImage() const;
34  virtual bool CopyImageFrom(const QImage& image);
35 
36 protected:
37  virtual bool ConvertFromQImage(const QImage& image) = 0;
38  virtual bool ConvertToQImage(QImage& result) const = 0;
39 
40  // reimplmented (istd::TCachedUpdateManagerWrap)
41  virtual bool CalculateCache(const ChangeSet& changeSet);
42 
43 private:
44  QImage m_image;
45 };
46 
47 
48 } // namespace iimg
49 
50 
51 #endif // !iimg_CReflectedBitmapBase_included
52 
53 
Implementation of bitmap storing internal additionaly QImage object reflecting state of main bitmap a...
Interface for QImage object provider.
virtual bool CopyImageFrom(const QImage &image)
Copies the image data from a QImage object.
virtual const QImage & GetQImage() const
Gets a QImage object.
Help wrapper class supporting of cached parts.
virtual bool CalculateCache(const ChangeSet &changeSet)
Calculate cache.
virtual bool ConvertFromQImage(const QImage &image)=0
virtual bool ConvertToQImage(QImage &result) const =0

© 2007-2017 Witold Gantzke and Kirill Lepskiy