27 #ifndef __SYNFIG_WPLISTCONVERTER_H
28 #define __SYNFIG_WPLISTCONVERTER_H
32 #include <synfig/general.h>
33 #include <synfig/widthpoint.h>
49 std::vector<synfig::Point> points;
51 std::vector<synfig::Real> widths;
53 std::vector<synfig::WidthPoint> work_out;
55 std::vector<synfig::Real> distances;
57 std::vector<synfig::Real> norm_distances;
59 std::vector<synfig::Real> ek;
61 std::vector<synfig::Real> ek2;
70 unsigned int calculate_ek2(
unsigned int k1,
unsigned int k2,
bool first_time=
false);
72 unsigned int find_next(
unsigned int k);
73 unsigned int find_prev(
unsigned int k);
80 static void EnforceMinWidth(std::list<synfig::WidthPoint> &wplist, synfig::Real min_pressure);
81 void operator()(std::list<synfig::WidthPoint> &wp_out,
const std::list<synfig::Point> &p,
const std::list<synfig::Real> &w);