CMultiPageBitmapBase.h
Go to the documentation of this file.
1 #ifndef iimg_CMultiPageBitmapBase_included
2 #define iimg_CMultiPageBitmapBase_included
3 
4 
5 // ACF includes
6 #include <imod/TModelWrap.h>
10 
11 
12 namespace iimg
13 {
14 
15 
21  virtual public IMultiPageBitmapController
22 {
23 public:
25 
26  // reimplemented (idoc::IMultiPageDocument)
28  const idoc::IDocumentMetaInfo* pageMetaInfoPtr = NULL,
29  const iprm::IParamsSet* pageParameterPtr = NULL,
30  int position = -1);
31 
32  // reimplemented (iimg::IMultiBitmapProvider)
33  virtual const iprm::IOptionsList* GetBitmapListInfo() const;
34  virtual int GetBitmapsCount() const;
35  virtual const iimg::IBitmap* GetBitmap(int bitmapIndex) const;
36 
37  // reimplemented (iimg::IMultiPageBitmapController)
38  virtual iimg::IBitmap* InsertBitmap(
39  iimg::IBitmap::PixelFormat pixelFormat,
40  const istd::CIndex2d& size);
41  virtual iimg::IBitmap* InsertBitmap(
42  iimg::IBitmap::PixelFormat pixelFormat,
43  const istd::CIndex2d& size,
44  void* dataPtr,
45  bool releaseFlag,
46  int linesDifference = 0);
47  virtual void RemoveBitmap(int index);
48 
49  // reimplemented (istd::IChangeable)
50  virtual bool CopyFrom(const istd::IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
51  virtual bool ResetData(CompatibilityMode mode = CM_WITHOUT_REFS);
52 
53 protected:
54  // abstract methods
55  virtual IBitmap* CreateBitmap() const = 0;
56 };
57 
58 
59 } // namespace iimg
60 
61 
62 #endif // !iimg_CMultiPageBitmapBase_included
63 
64 
virtual int GetBitmapsCount() const
Get number of produced bitmaps.
External references are simple ignored.
Definition: IChangeable.h:197
CompatibilityMode
Control how relationship betweeen objects are interpreted.
Definition: IChangeable.h:186
virtual iimg::IBitmap * InsertBitmap(iimg::IBitmap::PixelFormat pixelFormat, const istd::CIndex2d &size)
Inserts a new bitmap.
virtual void RemoveBitmap(int index)
Removes the bitmap at the given index.
Interface for document meta-information.
virtual IBitmap * CreateBitmap() const =0
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
Constraints of selection from set of possibilities.
Definition: IOptionsList.h:22
PixelFormat
Bitmap pixel format description.
Definition: IBitmap.h:23
Definition of single plane bitmap.
Definition: IBitmap.h:17
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual const iimg::IBitmap * GetBitmap(int bitmapIndex) const
Get access to produced bitmap object.
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS)
Reset data to its default state.
Definition of a multi-page bitmap document.
#define NULL
Definition: istd.h:64
virtual bool CopyFrom(const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
Copy this object from another one.
idoc::CMultiPageDocumentBase BaseClass
Set of general parameters.
Definition: IParamsSet.h:23
virtual const iprm::IOptionsList * GetBitmapListInfo() const
Get optional information about bitmaps in form of section constraints.
Interface of a controller for handling multi-page bitmaps.
virtual istd::IChangeable * InsertPage(const idoc::IDocumentMetaInfo *pageMetaInfoPtr=NULL, const iprm::IParamsSet *pageParameterPtr=NULL, int position=-1)
Insert a new document page at the given position.

© 2007-2017 Witold Gantzke and Kirill Lepskiy