summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cf6dc07)
raw | patch | inline | side by side (parent: cf6dc07)
author | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 2 Aug 2008 23:01:15 +0000 (23:01 +0000) | ||
committer | johanengelen <johanengelen@users.sourceforge.net> | |
Sat, 2 Aug 2008 23:01:15 +0000 (23:01 +0000) |
src/helper/Makefile_insert | patch | blob | history | |
src/helper/geom-curves.h | [new file with mode: 0644] | patch | blob |
index 432b3861c5eb909344dd0432ebe2e901c24c4cea..4d1ed66307643c98004869ff4c116c0d7bbcb714 100644 (file)
helper/action.h \
helper/geom.cpp \
helper/geom.h \
+ helper/geom-curves.h \
helper/geom-nodetype.cpp \
helper/geom-nodetype.h \
helper/gnome-utils.cpp \
diff --git a/src/helper/geom-curves.h b/src/helper/geom-curves.h
--- /dev/null
+++ b/src/helper/geom-curves.h
@@ -0,0 +1,39 @@
+#ifndef INKSCAPE_HELPER_GEOM_CURVES_H\r
+#define INKSCAPE_HELPER_GEOM_CURVES_H\r
+\r
+/**\r
+ * Specific curve type functions for Inkscape, not provided my lib2geom.\r
+ *\r
+ * Author:\r
+ * Johan Engelen <goejendaagh@zonnet.nl>\r
+ *\r
+ * Copyright (C) 2008 Johan Engelen\r
+ *\r
+ * Released under GNU GPL\r
+ */\r
+\r
+#include <2geom/hvlinesegment.h>\r
+\r
+inline bool is_straight_curve(Geom::Curve const & c) {\r
+ if( dynamic_cast<Geom::LineSegment const*>(&c) ||\r
+ dynamic_cast<Geom::HLineSegment const*>(&c) ||\r
+ dynamic_cast<Geom::VLineSegment const*>(&c) )\r
+ {\r
+ return true;\r
+ } else {\r
+ return false;\r
+ }\r
+}\r
+\r
+#endif // INKSCAPE_HELPER_GEOM_CURVES_H\r
+\r
+/*\r
+ Local Variables:\r
+ mode:c++\r
+ c-file-style:"stroustrup"\r
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
+ indent-tabs-mode:nil\r
+ fill-column:99\r
+ End:\r
+*/\r
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :\r