moreupdates
[synfig.git] / synfig-core / trunk / src / modules / mod_geometry / region.h
1 /*! ========================================================================
2 ** Synfig
3 ** Template Header File
4 ** $Id: region.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_REGION_H
24 #define __SYNFIG_REGION_H
25
26 /* === H E A D E R S ======================================================= */
27
28 #include <synfig/layer_polygon.h>
29 #include <list>
30 #include <vector>
31 #include <synfig/value.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 namespace synfig { class Segment; }
40
41 using namespace synfig;
42 using namespace std;
43 using namespace etl;
44
45 class Region : protected synfig::Layer_Polygon//Shape
46 {
47         SYNFIG_LAYER_MODULE_EXT
48 private:
49         synfig::ValueBase bline;
50         std::vector<synfig::Segment> segment_list;
51 public:
52         Region();
53
54         //! Updates the polygon data to match the parameters.
55         void sync();
56
57         virtual bool set_param(const String & param, const synfig::ValueBase &value);
58
59         virtual ValueBase get_param(const String & param)const;
60
61         virtual Vocab get_param_vocab()const;
62         virtual void set_time(Context context, Time time)const;
63         virtual void set_time(Context context, Time time, Vector pos)const;
64
65 };
66
67 /* === E N D =============================================================== */
68
69 #endif