00001 /* === S Y N F I G ========================================================= */ 00026 /* === S T A R T =========================================================== */ 00027 00028 #ifndef __SYNFIG_LUMAKEY_H 00029 #define __SYNFIG_LUMAKEY_H 00030 00031 /* === H E A D E R S ======================================================= */ 00032 00033 #include <synfig/layer_composite.h> 00034 #include <synfig/color.h> 00035 #include <synfig/vector.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 class LumaKey : public synfig::Layer_Composite, public synfig::Layer_NoDeform 00044 { 00045 SYNFIG_LAYER_MODULE_EXT 00046 private: 00047 00048 public: 00049 LumaKey(); 00050 00051 virtual bool set_param(const synfig::String & param, const synfig::ValueBase &value); 00052 00053 virtual synfig::ValueBase get_param(const synfig::String & param)const; 00054 00055 virtual synfig::Color get_color(synfig::Context context, const synfig::Point &pos)const; 00056 00057 virtual Vocab get_param_vocab()const; 00058 00059 synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const; 00060 virtual synfig::Rect get_bounding_rect(synfig::Context context)const; 00061 00062 virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const; 00063 virtual bool reads_context()const { return true; } 00064 }; // END of class LumaKey 00065 00066 /* === E N D =============================================================== */ 00067 00068 #endif