1 /**
2 * \file src/snapped-point.cpp
3 * \brief SnappedPoint class.
4 *
5 * Authors:
6 * Mathieu Dimanche <mdimanche@free.fr>
7 *
8 * Released under GNU GPL, read the file 'COPYING' for more information.
9 */
11 #include "snapped-point.h"
13 Inkscape::SnappedPoint::SnappedPoint(NR::Point p, NR::Coord d)
14 : _distance(d), _point(p)
15 {
17 }
19 Inkscape::SnappedPoint::~SnappedPoint()
20 {
21 /// TODO : empty the _hightlight_groups vector and destroy the
22 /// HighlightGroup items it holds
23 }
26 void Inkscape::SnappedPoint::addHighlightGroup(HighlightGroup *group)
27 {
28 /// TODO
29 }
31 void Inkscape::SnappedPoint::addHighlightGroups(std::vector<HighlightGroup*> *groups)
32 {
33 /// TODO
34 }
36 NR::Coord Inkscape::SnappedPoint::getDistance() const
37 {
38 return _distance;
39 }
41 NR::Point Inkscape::SnappedPoint::getPoint() const
42 {
43 return _point;
44 }
46 std::vector<Inkscape::HighlightGroup*> Inkscape::SnappedPoint::getHighlightGroups() const
47 {
48 return _hightlight_groups;
49 }
52 /*
53 Local Variables:
54 mode:c++
55 c-file-style:"stroustrup"
56 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57 indent-tabs-mode:nil
58 fill-column:99
59 End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :