diff --git a/search/include/pcl/search/kdtree.h b/search/include/pcl/search/kdtree.h index fc5caddbc1d..e1981ffbe65 100644 --- a/search/include/pcl/search/kdtree.h +++ b/search/include/pcl/search/kdtree.h @@ -95,11 +95,11 @@ namespace pcl /** \brief Provide a pointer to the point representation to use to convert points into k-D vectors. * \param[in] point_representation the const boost shared pointer to a PointRepresentation */ - void + virtual void setPointRepresentation (const PointRepresentationConstPtr &point_representation); /** \brief Get a pointer to the point representation used when converting points into k-D vectors. */ - inline PointRepresentationConstPtr + virtual inline PointRepresentationConstPtr getPointRepresentation () const { return (tree_->getPointRepresentation ()); @@ -114,11 +114,11 @@ namespace pcl /** \brief Set the search epsilon precision (error bound) for nearest neighbors searches. * \param[in] eps precision (error bound) for nearest neighbors searches */ - void + virtual void setEpsilon (float eps); /** \brief Get the search epsilon precision (error bound) for nearest neighbors searches. */ - inline float + virtual inline float getEpsilon () const { return (tree_->getEpsilon ()); diff --git a/search/include/pcl/search/kdtree_nanoflann.h b/search/include/pcl/search/kdtree_nanoflann.h index 42de4c73090..57b062a1fff 100644 --- a/search/include/pcl/search/kdtree_nanoflann.h +++ b/search/include/pcl/search/kdtree_nanoflann.h @@ -333,7 +333,7 @@ class KdTreeNanoflann : public pcl::search::KdTree { * @param[in] point_representation the const shared pointer to a PointRepresentation */ void - setPointRepresentation(const PointRepresentationConstPtr& point_representation) + setPointRepresentation(const PointRepresentationConstPtr& point_representation) override { PCL_DEBUG("[KdTreeNanoflann::setPointRepresentation] " "KdTreeNanoflann::setPointRepresentation called, " @@ -356,7 +356,7 @@ class KdTreeNanoflann : public pcl::search::KdTree { /** @brief Get a pointer to the point representation used when converting points into * k-D vectors. */ inline PointRepresentationConstPtr - getPointRepresentation() const + getPointRepresentation() const override { return point_representation_; } @@ -375,7 +375,7 @@ class KdTreeNanoflann : public pcl::search::KdTree { * @param[in] eps precision (error bound) for nearest neighbors searches */ void - setEpsilon(float eps) + setEpsilon(float eps) override { eps_ = eps; } @@ -383,7 +383,7 @@ class KdTreeNanoflann : public pcl::search::KdTree { /** @brief Get the search epsilon precision (error bound) for nearest neighbors * searches. */ inline float - getEpsilon() const + getEpsilon() const override { return eps_; }