summaryrefslogtreecommitdiffstats
path: root/src/snapped-point.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/snapped-point.cpp
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/snapped-point.cpp')
-rw-r--r--src/snapped-point.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/snapped-point.cpp b/src/snapped-point.cpp
new file mode 100644
index 000000000..3aebb086a
--- /dev/null
+++ b/src/snapped-point.cpp
@@ -0,0 +1,61 @@
+/**
+ * \file src/snapped-point.cpp
+ * \brief SnappedPoint class.
+ *
+ * Authors:
+ * Mathieu Dimanche <mdimanche@free.fr>
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information.
+ */
+
+#include "snapped-point.h"
+
+Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d)
+ : _distance(d), _point(p)
+{
+
+}
+
+Inkscape::SnappedPoint::~SnappedPoint()
+{
+ /// TODO : empty the _hightlight_groups vector and destroy the
+ /// HighlightGroup items it holds
+}
+
+
+void Inkscape::SnappedPoint::addHighlightGroup(HighlightGroup *group)
+{
+ /// TODO
+}
+
+void Inkscape::SnappedPoint::addHighlightGroups(std::vector<HighlightGroup*> *groups)
+{
+ /// TODO
+}
+
+NR::Coord Inkscape::SnappedPoint::getDistance() const
+{
+ return _distance;
+}
+
+NR::Point Inkscape::SnappedPoint::getPoint() const
+{
+ return _point;
+}
+
+std::vector<Inkscape::HighlightGroup*> Inkscape::SnappedPoint::getHighlightGroups() const
+{
+ return _hightlight_groups;
+}
+
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :