Dillo
imgrenderer.hh
Go to the documentation of this file.
1 #ifndef __DW_IMGRENDERER_HH__
2 #define __DW_IMGRENDERER_HH__
3 
4 #ifndef __INCLUDED_FROM_DW_CORE_HH__
5 # error Do not include this file directly, use "core.hh" instead.
6 #endif
7 
8 namespace dw {
9 namespace core {
10 
17 {
18 public:
19  virtual ~ImgRenderer () { }
20 
26  virtual void setBuffer (core::Imgbuf *buffer, bool resize = false) = 0;
27 
34  virtual void drawRow (int row) = 0;
35 
42  virtual void finish () = 0;
43 
49  virtual void fatal () = 0;
50 };
51 
60 {
63 
64 public:
65  inline ImgRendererDist ()
68  ~ImgRendererDist () { delete children; }
69 
70  void setBuffer (core::Imgbuf *buffer, bool resize);
71  void drawRow (int row);
72  void finish ();
73  void fatal ();
74 
75  void put (ImgRenderer *child)
77  void remove (ImgRenderer *child)
79  children->remove (&tp); }
80 };
81 
82 } // namespace core
83 } // namespace dw
84 
85 #endif // __DW_IMGRENDERER_HH__
86 
87 
Implementation of ImgRenderer, which distributes all calls to a set of other implementations of ImgRe...
Definition: imgrenderer.hh:59
virtual void setBuffer(core::Imgbuf *buffer, bool resize=false)=0
Called, when an image buffer is attached.
virtual void fatal()=0
Called, when there are problems with the retrieval of image data.
ImgRendererDist()
Definition: imgrenderer.hh:65
virtual void drawRow(int row)=0
Called, when data from a row is available and has been copied into the image buffer.
virtual ~ImgRenderer()
Definition: imgrenderer.hh:19
void finish()
Called, when all image data has been retrieved.
Definition: imgrenderer.cc:47
Typed version of container::untyped::HashSet.
Definition: container.hh:492
~ImgRendererDist()
Definition: imgrenderer.hh:68
void put(ImgRenderer *child)
Definition: imgrenderer.hh:75
virtual void finish()=0
Called, when all image data has been retrieved.
The platform independent interface for image buffers.
Definition: imgbuf.hh:161
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
void fatal()
Called, when there are problems with the retrieval of image data.
Definition: imgrenderer.cc:56
void setBuffer(core::Imgbuf *buffer, bool resize)
Called, when an image buffer is attached.
Definition: imgrenderer.cc:28
void drawRow(int row)
Called, when data from a row is available and has been copied into the image buffer.
Definition: imgrenderer.cc:37
lout::container::typed::HashSet< lout::object::TypedPointer< ImgRenderer > > * children
Definition: imgrenderer.hh:62
A typed version of object::Pointer.
Definition: object.hh:115
...
Definition: imgrenderer.hh:16