00001 /* === S Y N F I G ========================================================= */ 00025 /* === S T A R T =========================================================== */ 00026 00027 #ifndef __SYNFIG_REGION_H 00028 #define __SYNFIG_REGION_H 00029 00030 /* === H E A D E R S ======================================================= */ 00031 00032 #include <synfig/layer_polygon.h> 00033 #include <list> 00034 #include <vector> 00035 #include <synfig/value.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 namespace synfig { class Segment; } 00044 00045 using namespace synfig; 00046 using namespace std; 00047 using namespace etl; 00048 00049 class Region : protected synfig::Layer_Polygon//Shape 00050 { 00051 SYNFIG_LAYER_MODULE_EXT 00052 private: 00053 synfig::ValueBase bline; 00054 std::vector<synfig::Segment> segment_list; 00055 public: 00056 Region(); 00057 00059 void sync(); 00060 00061 virtual bool set_param(const String & param, const synfig::ValueBase &value); 00062 00063 virtual ValueBase get_param(const String & param)const; 00064 00065 virtual Vocab get_param_vocab()const; 00066 virtual void set_time(Context context, Time time)const; 00067 virtual void set_time(Context context, Time time, Vector pos)const; 00068 00069 }; 00070 00071 /* === E N D =============================================================== */ 00072 00073 #endif