X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fblineconvert.h;h=2b27187fbf62a367ca750b4164a7c7887da89e62;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=c6f6fbd74e4ca9efa0dd989b75af37b2dfbf351f;hpb=837b63e9fb829d66d43f4f169861f8979f76820d;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/blineconvert.h b/synfig-studio/trunk/src/synfigapp/blineconvert.h index c6f6fbd..2b27187 100644 --- a/synfig-studio/trunk/src/synfigapp/blineconvert.h +++ b/synfig-studio/trunk/src/synfigapp/blineconvert.h @@ -57,7 +57,7 @@ public: :curind(o.curind), tangentscale(o.tangentscale), error(o.error) {} - const cpindex & operator = (const cpindex & rhs) + const cpindex & operator=(const cpindex & rhs) { curind = rhs.curind; tangentscale = rhs.tangentscale; @@ -65,7 +65,7 @@ public: return *this; } - bool operator < (const cpindex &rhs) const + bool operator<(const cpindex &rhs) const { return curind < rhs.curind; } @@ -76,19 +76,19 @@ public: private: //cached data - std::vector f; //the preprocessed input cache - std::vector f_w; + std::vector point_cache; //the preprocessed input cache + std::vector width_cache; //temporary point storage for vector calc std::vector ftemp; - std::vector df; //the derivative cache - std::vector cvt; //the curvature cache + std::vector deriv; //the derivative cache + std::vector curvature; //the curvature cache - std::vector brk; //the break point cache + std::vector break_tangents; //the break point cache - std::vector di, //cumulative distance - d_i; //distance between adjacent segments + std::vector cum_dist, //cumulative distance + this_dist; //distance between adjacent segments std::vector work; //the working point cache for the entire curve std::vector curind; @@ -106,7 +106,7 @@ public: BLineConverter(); static void EnforceMinWidth(std::list &bline, synfig::Real min_pressure); - void operator ()(std::list &out, const std::list &in,const std::list &in_w); + void operator()(std::list &out, const std::list &in,const std::list &in_w); }; }; // END of namespace synfigapp