Changeset 21:c6c1dda3d2e0 in rrlib_geometry for space_partitioning/tKDTree.h
 Timestamp:
 09.01.2012 16:12:12 (8 years ago)
 Branch:
 default
 Phase:
 public
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

space_partitioning/tKDTree.h
r20 r21 146 146 147 147 typedef geometry::tPoint<Tdimension, TElement> tPoint; 148 typedef geometry::tBoundingBox<Tdimension, TElement> tBoundingBox;149 148 typedef std::function < TElement(const tPoint &, const tPoint &) > tMetric; 149 150 static const tMetric cDEFAULT_METRIC; 150 151 151 152 /*! … … 168 169 public: 169 170 171 typedef geometry::tBoundingBox<Tdimension, TElement> tBoundingBox; 172 170 173 /*! 171 174 * \brief The ctor of tNode … … 176 179 * as its own children until only single points are left. 177 180 * 178 * \param beginAn indirect iterator to the begin of the data to manage179 * \param endAn indirect iterator to the end of the data to manage180 * \param metric A functor that computes an appropriate metric181 * \param points_begin An indirect iterator to the begin of the data to manage 182 * \param points_end An indirect iterator to the end of the data to manage 183 * \param metric A functor that computes an appropriate metric 181 184 */ 182 185 template <typename TIterator> 183 tNode(TIterator begin, TIteratorend, tMetric metric);186 tNode(TIterator points_begin, TIterator points_end, tMetric metric); 184 187 185 188 /*! … … 217 220 218 221 /*! 219 * \brief Get the axisaligned boungin dbox of the points underneath this node222 * \brief Get the axisaligned bounging box of the points underneath this node 220 223 * 221 224 * \return The maximum coordinates of this node … … 282 285 */ 283 286 template <typename TIterator> 284 tKDTree(TIterator begin, TIterator end);285 286 template <typename TIterator>287 tKDTree(TIterator begin, TIterator end, tMetric metric);287 tKDTree(TIterator points_begin, TIterator points_end, tMetric metric = cDEFAULT_METRIC); 288 // 289 // template <typename TIterator> 290 // tKDTree(TIterator begin, TIterator end, tMetric metric); 288 291 289 292 /*!
Note: See TracChangeset
for help on using the changeset viewer.