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