synfig-core  1.0.3
layer_motionblur.h
Go to the documentation of this file.
1 /* === S Y N F I G ========================================================= */
22 /* ========================================================================= */
23 
24 /* === S T A R T =========================================================== */
25 
26 #ifndef __SYNFIG_LAYER_MOTIONBLUR_H__
27 #define __SYNFIG_LAYER_MOTIONBLUR_H__
28 
29 /* === H E A D E R S ======================================================= */
30 
31 #include "layer_composite.h"
32 #include <synfig/time.h>
33 
34 /* === S T R U C T S & C L A S S E S ======================================= */
35 
36 namespace synfig {
37 
39 {
41 
42  enum SubsamplingType
43  {
44  SUBSAMPLING_CONSTANT=0,
45  SUBSAMPLING_LINEAR=1,
46  SUBSAMPLING_HYPERBOLIC=2,
47 
48  SUBSAMPLING_END=2
49  };
50 
51 private:
52  ValueBase param_aperture;
53  ValueBase param_subsamples_factor;
54  ValueBase param_subsampling_type;
55  ValueBase param_subsample_start;
56  ValueBase param_subsample_end;
57  mutable Time time_cur;
58 
59 public:
61  virtual bool set_param(const String & param, const synfig::ValueBase &value);
62  virtual ValueBase get_param(const String & param)const;
63  virtual Color get_color(Context context, const Point &pos)const;
64  virtual void set_time(IndependentContext context, Time time)const;
65  virtual void set_time(IndependentContext context, Time time, const Point &point)const;
66  virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
67  virtual bool accelerated_cairorender(Context context, cairo_t *cr, int quality, const RendDesc &renddesc, ProgressCallback *cb)const;
68  virtual Vocab get_param_vocab()const;
69  virtual bool reads_context()const { return true; }
70 }; // END of class Layer_MotionBlur
71 
72 }; // END of namespace synfig
73 
74 /* === E N D =============================================================== */
75 
76 #endif