00001 /* === S Y N F I G ========================================================= */ 00021 /* ========================================================================= */ 00022 00023 /* === S T A R T =========================================================== */ 00024 00025 #ifndef __SYNFIG_BOOLEAN_CURVE_H 00026 #define __SYNFIG_BOOLEAN_CURVE_H 00027 00028 /* === H E A D E R S ======================================================= */ 00029 #include <synfig/layer_shape.h> 00030 #include <synfig/blinepoint.h> 00031 00032 #include <vector> 00033 00034 /* === M A C R O S ========================================================= */ 00035 00036 /* === T Y P E D E F S ===================================================== */ 00037 00038 /* === C L A S S E S & S T R U C T S ======================================= */ 00039 namespace synfig 00040 { 00041 00042 class BooleanCurve : public Layer_Shape 00043 { 00044 //dynamic list of regions and such 00045 typedef std::vector< std::vector<BLinePoint> > region_list_type; 00046 region_list_type regions; 00047 00048 enum BOOLEAN_OP 00049 { 00050 Union = 0, 00051 Intersection, 00052 MutualExclude, 00053 Num_Boolean_Ops 00054 }; 00055 00056 int operation; 00057 00058 public: 00059 00060 BooleanCurve(); 00061 ~BooleanCurve(); 00062 00063 virtual bool set_param(const String & param, const synfig::ValueBase &value); 00064 virtual ValueBase get_param(const String & param)const; 00065 00066 virtual Vocab get_param_vocab()const; 00067 00068 virtual Color get_color(Context context, const Point &pos)const; 00069 virtual bool accelerated_render(Context context,Surface *surface,int quality, const RendDesc &renddesc, ProgressCallback *cb)const; 00070 }; 00071 00072 } //end of namespace synfig 00073 /* === E N D =============================================================== */ 00074 00075 #endif