IRasterImage.h
Go to the documentation of this file.
1 #ifndef iimg_IRasterImage_included
2 #define iimg_IRasterImage_included
3 
4 
5 // ACF includes
6 #include <istd/CIndex2d.h>
7 #include <i2d/IObject2d.h>
8 #include <icmm/CVarColor.h>
9 
10 
11 namespace iimg
12 {
13 
14 
19 class IRasterImage: virtual public i2d::IObject2d
20 {
21 public:
25  virtual bool IsEmpty() const = 0;
26 
31  virtual void ResetImage() = 0;
32 
37  virtual void ClearImage() = 0;
38 
42  virtual istd::CIndex2d GetImageSize() const = 0;
43 
47  virtual int GetComponentsCount() const = 0;
48 
53  virtual icmm::CVarColor GetColorAt(const istd::CIndex2d& position) const = 0;
54 
61  virtual bool SetColorAt(const istd::CIndex2d& position, const icmm::CVarColor& color) = 0;
62 };
63 
64 
65 } // namespace iimg
66 
67 
68 #endif // !iimg_IRasterImage_included
69 
70 
virtual istd::CIndex2d GetImageSize() const =0
Get size of this raster image.
virtual void ClearImage()=0
Cleat this image.
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
virtual bool SetColorAt(const istd::CIndex2d &position, const icmm::CVarColor &color)=0
Set color at specified pixel.
Generic color implementation with variable number of color components.
Definition: CVarColor.h:21
General definition of image contains pixels in regular grid.
Definition: IRasterImage.h:19
virtual void ResetImage()=0
Reset this image.
virtual bool IsEmpty() const =0
Return true if this image is empty.
virtual icmm::CVarColor GetColorAt(const istd::CIndex2d &position) const =0
Get color at specified pixel.
Common interface for describing the 2D-objects.
Definition: IObject2d.h:22
virtual int GetComponentsCount() const =0
Get number of color components.

© 2007-2017 Witold Gantzke and Kirill Lepskiy