comparison data/model/SparseModel.h @ 459:6441b31b37ac

* somewhat clearer layout in region layer
author Chris Cannam
date Thu, 16 Oct 2008 13:38:33 +0000
parents 113cf8781bd1
children 1415e35881f6
comparison
equal deleted inserted replaced
458:f60360209e5c 459:6441b31b37ac
77 * Get the total number of points in the model. 77 * Get the total number of points in the model.
78 */ 78 */
79 virtual size_t getPointCount() const; 79 virtual size_t getPointCount() const;
80 80
81 /** 81 /**
82 * Get all points.
83 */
84 virtual const PointList &getPoints() const;
85
86 /**
82 * Get all of the points in this model between the given 87 * Get all of the points in this model between the given
83 * boundaries (in frames), as well as up to two points before and 88 * boundaries (in frames), as well as up to two points before and
84 * after the boundaries. If you need exact boundaries, check the 89 * after the boundaries. If you need exact boundaries, check the
85 * point coordinates in the returned list. 90 * point coordinates in the returned list.
86 */ 91 */
89 /** 94 /**
90 * Get all points that cover the given frame number, taking the 95 * Get all points that cover the given frame number, taking the
91 * resolution of the model into account. 96 * resolution of the model into account.
92 */ 97 */
93 virtual PointList getPoints(long frame) const; 98 virtual PointList getPoints(long frame) const;
94
95 /**
96 * Get all points.
97 */
98 virtual const PointList &getPoints() const { return m_points; }
99 99
100 /** 100 /**
101 * Return all points that share the nearest frame number prior to 101 * Return all points that share the nearest frame number prior to
102 * the given one at which there are any points. 102 * the given one at which there are any points.
103 */ 103 */
472 template <typename PointType> 472 template <typename PointType>
473 size_t 473 size_t
474 SparseModel<PointType>::getPointCount() const 474 SparseModel<PointType>::getPointCount() const
475 { 475 {
476 return m_pointCount; 476 return m_pointCount;
477 }
478
479 template <typename PointType>
480 const typename SparseModel<PointType>::PointList &
481 SparseModel<PointType>::getPoints() const
482 {
483 return m_points;
477 } 484 }
478 485
479 template <typename PointType> 486 template <typename PointType>
480 typename SparseModel<PointType>::PointList 487 typename SparseModel<PointType>::PointList
481 SparseModel<PointType>::getPoints(long start, long end) const 488 SparseModel<PointType>::getPoints(long start, long end) const