Code

now that selection description includes style (filtered, clipped), we need to update...
[inkscape.git] / src / pencil-context.h
index 87e9b2470483bd8b4fdd15d74433abce32d2856c..cbcf2b98e4e16afed55642605934a22c77255251 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).