Mercurial > hg > svcore
comparison base/Clipboard.cpp @ 1612:23a29e5dc0e9 single-point
Start implementing & testing PointSeries
author | Chris Cannam |
---|---|
date | Wed, 06 Mar 2019 16:24:23 +0000 |
parents | b2f32c554199 |
children | 24dc8cb42755 |
comparison
equal
deleted
inserted
replaced
1611:b2f32c554199 | 1612:23a29e5dc0e9 |
---|---|
28 Clipboard::empty() const | 28 Clipboard::empty() const |
29 { | 29 { |
30 return m_points.empty(); | 30 return m_points.empty(); |
31 } | 31 } |
32 | 32 |
33 const Clipboard::PointList & | 33 const PointVector & |
34 Clipboard::getPoints() const | 34 Clipboard::getPoints() const |
35 { | 35 { |
36 return m_points; | 36 return m_points; |
37 } | 37 } |
38 | 38 |
39 void | 39 void |
40 Clipboard::setPoints(const PointList &pl) | 40 Clipboard::setPoints(const PointVector &pl) |
41 { | 41 { |
42 m_points = pl; | 42 m_points = pl; |
43 } | 43 } |
44 | 44 |
45 void | 45 void |
49 } | 49 } |
50 | 50 |
51 bool | 51 bool |
52 Clipboard::haveReferenceFrames() const | 52 Clipboard::haveReferenceFrames() const |
53 { | 53 { |
54 for (PointList::const_iterator i = m_points.begin(); | 54 for (PointVector::const_iterator i = m_points.begin(); |
55 i != m_points.end(); ++i) { | 55 i != m_points.end(); ++i) { |
56 if (i->haveReferenceFrame()) return true; | 56 if (i->haveReferenceFrame()) return true; |
57 } | 57 } |
58 return false; | 58 return false; |
59 } | 59 } |
60 | 60 |
61 bool | 61 bool |
62 Clipboard::referenceFramesDiffer() const | 62 Clipboard::referenceFramesDiffer() const |
63 { | 63 { |
64 for (PointList::const_iterator i = m_points.begin(); | 64 for (PointVector::const_iterator i = m_points.begin(); |
65 i != m_points.end(); ++i) { | 65 i != m_points.end(); ++i) { |
66 if (i->referenceFrameDiffers()) return true; | 66 if (i->referenceFrameDiffers()) return true; |
67 } | 67 } |
68 return false; | 68 return false; |
69 } | 69 } |