summaryrefslogtreecommitdiffstats
path: root/src/sp-spiral.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-09-24 22:26:56 +0000
committerMarkus Engel <markus.engel@tum.de>2013-09-24 22:26:56 +0000
commit34f62f6df3f4a18f6ea25c3a1b63e6b47fdc7c5d (patch)
treead8f4e271aa02e76aa3c1e3210d1af1f6a663581 /src/sp-spiral.h
parentMerged from trunk (r12588). (diff)
downloadinkscape-34f62f6df3f4a18f6ea25c3a1b63e6b47fdc7c5d.tar.gz
inkscape-34f62f6df3f4a18f6ea25c3a1b63e6b47fdc7c5d.zip
Refactored SPSpiral.
(bzr r11608.1.130)
Diffstat (limited to 'src/sp-spiral.h')
-rw-r--r--src/sp-spiral.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/sp-spiral.h b/src/sp-spiral.h
index a81b4a3dd..4e067981b 100644
--- a/src/sp-spiral.h
+++ b/src/sp-spiral.h
@@ -20,8 +20,8 @@
#define SP_HUGE 1e5
#define SPIRAL_TOLERANCE 3.0
-#define SAMPLE_STEP (1.0/4.0) ///< step per 2PI
-#define SAMPLE_SIZE 8 ///< sample size per one bezier
+#define SAMPLE_STEP (1.0/4.0) ///< step per 2PI
+#define SAMPLE_SIZE 8 ///< sample size per one bezier
#define SP_SPIRAL(obj) (dynamic_cast<SPSpiral*>((SPObject*)obj))
@@ -61,11 +61,6 @@ public:
bool isInvalid() const;
-//private:
- Geom::Point getTangent(gdouble t) const;
-
- void fitAndDraw(SPCurve* c, double dstep, Geom::Point darray[], Geom::Point const& hat1, Geom::Point& hat2, double* t) const;
-
virtual void build(SPDocument* doc, Inkscape::XML::Node* repr);
virtual Inkscape::XML::Node* write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags);
virtual void update(SPCtx *ctx, guint flags);
@@ -77,6 +72,10 @@ public:
virtual void set_shape();
virtual void update_patheffect(bool write);
+
+private:
+ Geom::Point getTangent(gdouble t) const;
+ void fitAndDraw(SPCurve* c, double dstep, Geom::Point darray[], Geom::Point const& hat1, Geom::Point& hat2, double* t) const;
};
#endif // SEEN_SP_SPIRAL_H