synfig-core  1.0.3
modules/mod_filter/blur.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
23 /* ========================================================================= */
24 
25 /* === H E A D E R S ======================================================= */
26 
27 #ifndef __SYNFIG_LAYER_BLUR_H__
28 #define __SYNFIG_LAYER_BLUR_H__
29 
30 /* -- H E A D E R S --------------------------------------------------------- */
31 
33 #include <synfig/color.h>
34 #include <synfig/vector.h>
35 #include <synfig/blur.h>
36 
37 using namespace synfig;
38 using namespace std;
39 using namespace etl;
40 
42 {
44 private:
46  ValueBase param_size;
48  ValueBase param_type;
49 
50 public:
51  Blur_Layer();
52 
53  virtual bool set_param(const String & param, const ValueBase &value);
54 
55  virtual ValueBase get_param(const String & param)const;
56 
57  virtual Color get_color(Context context, const Point &pos)const;
58 
59  virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
60  virtual bool accelerated_cairorender(Context context, cairo_t *cr, int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
61  virtual synfig::Rect get_full_bounding_rect(Context context)const;
62 
63  virtual Vocab get_param_vocab()const;
64 
65  virtual bool reads_context()const { return true; }
66 }; // END of class Blur
67 
68 /* -- E X T E R N S --------------------------------------------------------- */
69 
70 /* -- E N D ----------------------------------------------------------------- */
71 
72 #endif