00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_LAYER_SOLIDCOLOR_H 00026 #define __SYNFIG_LAYER_SOLIDCOLOR_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 00030 #include <synfig/layer.h> 00031 00032 /* === M A C R O S ========================================================= */ 00033 00034 /* === T Y P E D E F S ===================================================== */ 00035 00036 /* === C L A S S E S & S T R U C T S ======================================= */ 00037 00038 namespace synfig { 00039 00040 class Layer_Clamp : public Layer 00041 { 00042 SYNFIG_LAYER_MODULE_EXT 00043 00044 private: 00045 00046 bool invert_negative; 00047 bool clamp_ceiling; 00048 00049 float ceiling; 00050 float floor; 00051 00052 Color clamp_color(const Color &in)const; 00053 00054 public: 00055 00056 Layer_Clamp(); 00057 00058 virtual bool set_param(const String & param, const synfig::ValueBase &value); 00059 00060 virtual ValueBase get_param(const String & param)const; 00061 00062 virtual Color get_color(Context context, const Point &pos)const; 00063 00064 virtual Rect get_full_bounding_rect(Context context)const; 00065 00066 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; 00067 00068 virtual Vocab get_param_vocab()const; 00069 }; // END of class Layer_Clamp 00070 00071 }; // END of namespace synfig 00072 00073 /* === E N D =============================================================== */ 00074 00075 #endif