Code

Extensions. Check element now search in the extension directory (see Bug #668895...
[inkscape.git] / src / pencil-context.h
index 87e9b2470483bd8b4fdd15d74433abce32d2856c..aa0f60eb24b063f210ebfd9ba73c03d90710f127 100644 (file)
@@ -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,6 +31,11 @@ struct SPPencilContext : public SPDrawContext {
     Geom::Point req_tangent;
 
     bool is_drawing;
+
+    std::vector<Geom::Point> ps;
+
+    Geom::Piecewise<Geom::D2<Geom::SBasis> > sketch_interpolation; // the current proposal from the sketched paths
+    unsigned sketch_n; // number of sketches done
 };
 
 /// The SPPencilContext vtable (empty).
@@ -49,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 :