/* === H E A D E R S ======================================================= */
#include <synfig/layer_composite.h>
-#include <synfig/color.h>
+#include <synfig/gradient.h>
#include <synfig/vector.h>
#include <synfig/value.h>
#include <vector>
private:
- synfig::Color color;
+ synfig::Gradient gradient;
std::vector<synfig::Point> centers;
std::vector<synfig::Real> radii;
std::vector<synfig::Real> weights;
synfig::Real threshold;
- //Real threshold2;
+ synfig::Real threshold2;
+
+ bool positive;
+
+ synfig::Real densityfunc(const synfig::Point &p, const synfig::Point &c, synfig::Real R)const;
synfig::Real totaldensity(const synfig::Point &pos)const;
virtual bool accelerated_render(synfig::Context context,synfig::Surface *surface,int quality, const synfig::RendDesc &renddesc, synfig::ProgressCallback *cb)const;
virtual Vocab get_param_vocab()const;
+
+ virtual synfig::Layer::Handle hit_check(synfig::Context context, const synfig::Point &point)const;
}; // END of class Metaballs
/* === E N D =============================================================== */