summaryrefslogtreecommitdiffstats
path: root/src/ui/tools/pencil-tool.h
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-08-27 10:55:26 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-08-27 10:55:26 +0000
commitbbde5dbeeb06611e99f9fa7f73dafe3bf70df01c (patch)
tree8f2aba648ca0b2ae7519903c2270d56039e4a6a9 /src/ui/tools/pencil-tool.h
parentStarting with powerpencil (diff)
downloadinkscape-bbde5dbeeb06611e99f9fa7f73dafe3bf70df01c.tar.gz
inkscape-bbde5dbeeb06611e99f9fa7f73dafe3bf70df01c.zip
Working on preview over powerpencil
Diffstat (limited to 'src/ui/tools/pencil-tool.h')
-rw-r--r--src/ui/tools/pencil-tool.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ui/tools/pencil-tool.h b/src/ui/tools/pencil-tool.h
index b6e9680d2..607d10c4a 100644
--- a/src/ui/tools/pencil-tool.h
+++ b/src/ui/tools/pencil-tool.h
@@ -46,13 +46,15 @@ public:
std::vector<Geom::Point> ps;
std::vector<Geom::Point> pps;
+ std::vector<Geom::Point> points;
std::vector<double> wps;
double previous_pressure;
+ Geom::Point previous_point;
+ bool start;
double gap_pressure;
- double min_distance;
double start_clamp;
double end_clamp;
-
+ void addPowerStrokePoint(SPCurve * c, Geom::Point p, double pressure_data);
Geom::Piecewise<Geom::D2<Geom::SBasis> > sketch_interpolation; // the current proposal from the sketched paths
unsigned sketch_n; // number of sketches done
@@ -71,8 +73,8 @@ private:
bool _handleButtonRelease(GdkEventButton const &revent);
bool _handleKeyPress(GdkEventKey const &event);
bool _handleKeyRelease(GdkEventKey const &event);
-
void _setStartpoint(Geom::Point const &p);
+
void _setEndpoint(Geom::Point const &p);
void _finishEndpoint();
void _addFreehandPoint(Geom::Point const &p, guint state);