X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fpencil-context.h;h=aa0f60eb24b063f210ebfd9ba73c03d90710f127;hb=5a43b2bbcb81ab7da396dad781d3f9b7854eb002;hp=0845c82ba9234b7e0e6b2e06383fbce3583d1bff;hpb=6c3e745a94ef6b25a4ef9f018d350a7535aa45af;p=inkscape.git diff --git a/src/pencil-context.h b/src/pencil-context.h index 0845c82ba..aa0f60eb2 100644 --- a/src/pencil-context.h +++ b/src/pencil-context.h @@ -17,7 +17,8 @@ enum PencilState { SP_PENCIL_CONTEXT_IDLE, SP_PENCIL_CONTEXT_ADDLINE, - SP_PENCIL_CONTEXT_FREEHAND + SP_PENCIL_CONTEXT_FREEHAND, + SP_PENCIL_CONTEXT_SKETCH }; /** @@ -30,9 +31,11 @@ struct SPPencilContext : public SPDrawContext { Geom::Point req_tangent; bool is_drawing; - bool prev_snap_was_succesful; - + std::vector ps; + + Geom::Piecewise > sketch_interpolation; // the current proposal from the sketched paths + unsigned sketch_n; // number of sketches done }; /// The SPPencilContext vtable (empty). @@ -52,4 +55,4 @@ GType sp_pencil_context_get_type(); fill-column:99 End: */ -// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 : +// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :