Code

Extensions. Check element now search in the extension directory (see Bug #668895...
[inkscape.git] / src / pencil-context.h
index 60519c2691b637f96389153663aee7d3bc7420d8..aa0f60eb24b063f210ebfd9ba73c03d90710f127 100644 (file)
 enum PencilState {
     SP_PENCIL_CONTEXT_IDLE,
     SP_PENCIL_CONTEXT_ADDLINE,
-    SP_PENCIL_CONTEXT_FREEHAND
+    SP_PENCIL_CONTEXT_FREEHAND,
+    SP_PENCIL_CONTEXT_SKETCH
 };
 
 /**
  * SPPencilContext: a context for pencil tool events
  */
 struct SPPencilContext : public SPDrawContext {
-    NR::Point p[16];
+    Geom::Point p[16];
     gint npoints;
     PencilState state;
-    NR::Point req_tangent;
+    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 :