X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fsynfigapp%2Fblineconvert.h;h=f3fd890c93562c0756b08d5ed77f88e62172c93c;hb=c34eaa5441242b3e9a7b7645e9ee4983d14eae85;hp=7e5c0208e75e90d76fa23a05f6624a24ae2a45f8;hpb=5ddcf36f04cfbd10fabda4e3c5633cb27cdd4c0a;p=synfig.git diff --git a/synfig-studio/trunk/src/synfigapp/blineconvert.h b/synfig-studio/trunk/src/synfigapp/blineconvert.h index 7e5c020..f3fd890 100644 --- a/synfig-studio/trunk/src/synfigapp/blineconvert.h +++ b/synfig-studio/trunk/src/synfigapp/blineconvert.h @@ -39,7 +39,7 @@ /* === C L A S S E S & S T R U C T S ======================================= */ namespace synfigapp { - + class BLineConverter { public: @@ -48,15 +48,15 @@ public: int curind; synfig::Real tangentscale; synfig::Real error; //negative error will indicate invalid; - - cpindex(int ci, synfig::Real s=0, synfig::Real e=-1) - :curind(ci), tangentscale(s), error(e) + + cpindex(int ci, synfig::Real s=0, synfig::Real e=-1) + :curind(ci), tangentscale(s), error(e) {} - + cpindex(const cpindex & o) - :curind(o.curind), tangentscale(o.tangentscale), error(o.error) + :curind(o.curind), tangentscale(o.tangentscale), error(o.error) {} - + const cpindex & operator = (const cpindex & rhs) { curind = rhs.curind; @@ -64,12 +64,12 @@ public: error = rhs.error; return *this; } - + bool operator < (const cpindex &rhs) const { - return curind < rhs.curind; + return curind < rhs.curind; } - + //point is obviously in[curind] //tangent scale will get reset to the smallest (or something else depending on experimentation) }; @@ -81,18 +81,18 @@ private: //temporary point storage for vector calc std::vector ftemp; - - std::vector df; //the derivative cache + + std::vector df; //the derivative cache std::vector cvt; //the curvature cache - + std::vector brk; //the break point cache - + std::vector di, //cumulative distance d_i; //distance between adjacent segments - + std::vector work; //the working point cache for the entire curve std::vector curind; - + //function parameters void clear(); @@ -108,7 +108,7 @@ public: static void EnforceMinWidth(std::list &bline, synfig::Real min_pressure); void operator ()(std::list &out, const std::list &in,const std::list &in_w); }; - + }; // END of namespace synfigapp /* === E N D =============================================================== */