moreupdates
[synfig.git] / synfig-core / trunk / src / modules / lyr_std / julia.h
1 /*! ========================================================================
2 ** Synfig
3 ** Template Header File
4 ** $Id: julia.h,v 1.1.1.1 2005/01/04 01:23:10 darco Exp $
5 **
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
7 **
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
11 **
12 ** You may not copy, print, publish, or in any
13 ** other way distribute this software without
14 ** a prior written agreement with
15 ** the copyright holder.
16 **
17 ** === N O T E S ===========================================================
18 **
19 ** ========================================================================= */
20
21 /* === S T A R T =========================================================== */
22
23 #ifndef __SYNFIG_JULIA_H
24 #define __SYNFIG_JULIA_H
25
26 /* === H E A D E R S ======================================================= */
27
28 #include <synfig/layer.h>
29 #include <synfig/color.h>
30 #include <synfig/vector.h>
31 #include <synfig/angle.h>
32
33 /* === M A C R O S ========================================================= */
34
35 /* === T Y P E D E F S ===================================================== */
36
37 /* === C L A S S E S & S T R U C T S ======================================= */
38
39 using namespace synfig;
40 using namespace std;
41 using namespace etl;
42
43 class Julia : public synfig::Layer
44 {
45         SYNFIG_LAYER_MODULE_EXT
46
47 private:
48
49         synfig::Color icolor;
50         synfig::Color ocolor;
51         synfig::Angle color_shift;
52         Real bailout;
53         Real lp;
54         int iterations;
55         synfig::Point seed;
56
57         bool distort_inside;
58         bool distort_outside;
59         bool shade_inside;
60         bool shade_outside;
61         bool solid_inside;
62         bool solid_outside;     
63         bool invert_inside;
64         bool invert_outside;
65         bool color_inside;
66         bool color_outside;
67
68         bool color_cycle;
69         bool smooth_outside;
70         bool broken;
71
72 public:
73         Julia();
74         
75         virtual bool set_param(const synfig::String &param, const synfig::ValueBase &value);
76
77         virtual ValueBase get_param(const synfig::String &param)const;
78
79         virtual Color get_color(synfig::Context context, const synfig::Point &pos)const;
80
81         virtual Vocab get_param_vocab()const;   
82 };
83
84 /* === E N D =============================================================== */
85
86 #endif