00001
00026
00027
00028 #ifndef __SYNFIG_STAR_H
00029 #define __SYNFIG_STAR_H
00030
00031
00032
00033 #include <synfig/layer_polygon.h>
00034 #include <list>
00035 #include <vector>
00036
00037
00038
00039
00040
00041
00042
00043 using namespace synfig;
00044 using namespace std;
00045 using namespace etl;
00046
00047 class Star : protected synfig::Layer_Polygon
00048 {
00049 SYNFIG_LAYER_MODULE_EXT
00050 private:
00051
00052 Real radius1;
00053 Real radius2;
00054 int points;
00055 Angle angle;
00056 bool regular_polygon;
00057 public:
00058 Star();
00059
00061 void sync();
00062
00063 virtual bool set_param(const String & param, const synfig::ValueBase &value);
00064
00065 virtual ValueBase get_param(const String & param)const;
00066
00067 virtual Vocab get_param_vocab()const;
00068 };
00069
00070
00071
00072 #endif