00001 /* === S Y N F I G ========================================================= */ 00026 /* === S T A R T =========================================================== */ 00027 00028 #ifndef __SYNFIG_RADIALBLUR_H 00029 #define __SYNFIG_RADIALBLUR_H 00030 00031 /* === H E A D E R S ======================================================= */ 00032 00033 #include <synfig/vector.h> 00034 #include <synfig/angle.h> 00035 #include <synfig/layer_composite.h> 00036 00037 /* === M A C R O S ========================================================= */ 00038 00039 /* === T Y P E D E F S ===================================================== */ 00040 00041 /* === C L A S S E S & S T R U C T S ======================================= */ 00042 00043 using namespace synfig; 00044 using namespace std; 00045 using namespace etl; 00046 00047 class RadialBlur : public Layer_Composite 00048 { 00049 SYNFIG_LAYER_MODULE_EXT 00050 friend class RadialBlur_Trans; 00051 private: 00052 Vector origin; 00053 Real size; 00054 bool fade_out; 00055 00056 public: 00057 RadialBlur(); 00058 ~RadialBlur(); 00059 00060 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); 00061 virtual ValueBase get_param(const synfig::String & param)const; 00062 virtual Color get_color(Context context, const Point &pos)const; 00063 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; 00064 virtual Vocab get_param_vocab()const; 00065 virtual bool reads_context()const { return true; } 00066 }; // END of class RadialBlur 00067 00068 /* === E N D =============================================================== */ 00069 00070 #endif