00001 /* === S Y N F I G ========================================================= */ 00025 /* === S T A R T =========================================================== */ 00026 00027 #ifndef __SYNFIG_JULIA_H 00028 #define __SYNFIG_JULIA_H 00029 00030 /* === H E A D E R S ======================================================= */ 00031 00032 #include <synfig/layer.h> 00033 #include <synfig/color.h> 00034 #include <synfig/vector.h> 00035 #include <synfig/angle.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 Julia : public synfig::Layer 00048 { 00049 SYNFIG_LAYER_MODULE_EXT 00050 00051 private: 00052 00053 synfig::Color icolor; 00054 synfig::Color ocolor; 00055 synfig::Angle color_shift; 00056 Real bailout; 00057 Real lp; 00058 int iterations; 00059 synfig::Point seed; 00060 00061 bool distort_inside; 00062 bool distort_outside; 00063 bool shade_inside; 00064 bool shade_outside; 00065 bool solid_inside; 00066 bool solid_outside; 00067 bool invert_inside; 00068 bool invert_outside; 00069 bool color_inside; 00070 bool color_outside; 00071 00072 bool color_cycle; 00073 bool smooth_outside; 00074 bool broken; 00075 00076 public: 00077 Julia(); 00078 00079 virtual bool set_param(const synfig::String ¶m, const synfig::ValueBase &value); 00080 00081 virtual ValueBase get_param(const synfig::String ¶m)const; 00082 00083 virtual Color get_color(synfig::Context context, const synfig::Point &pos)const; 00084 00085 virtual Vocab get_param_vocab()const; 00086 }; 00087 00088 /* === E N D =============================================================== */ 00089 00090 #endif