Skip to content

Commit

Permalink
Remove deprecated in visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
larshg committed Oct 9, 2020
1 parent 905f452 commit 31dd8f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,28 +98,11 @@ namespace pcl
getFieldName () const = 0;

/** Obtain the actual color for the input dataset as a VTK data array.
* Deriving handlers should override this method. The default implementation is
* provided only for backwards compatibility with handlers that were written
* before PCL 1.10.0 and will be removed in future.
* Deriving handlers should override this method.
* \return smart pointer to VTK array if the operation was successful (the
* handler is capable and the input cloud was given), a null pointer otherwise */
virtual vtkSmartPointer<vtkDataArray>
getColor () const {
vtkSmartPointer<vtkDataArray> scalars;
getColor (scalars);
return scalars;
}

/** Obtain the actual color for the input dataset as a VTK data array.
* This virtual method should not be overriden or used. The default implementation
* is provided only for backwards compatibility with handlers that were written
* before PCL 1.10.0 and will be removed in future. */
PCL_DEPRECATED(1, 12, "use getColor() without parameters instead")
virtual bool
getColor (vtkSmartPointer<vtkDataArray> &scalars) const {
scalars = getColor ();
return scalars.Get() != nullptr;
}
getColor () const = 0;

/** \brief Set the input cloud to be used.
* \param[in] cloud the input cloud to be used by the handler
Expand Down Expand Up @@ -187,8 +170,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

protected:
// Members derived from the base class
using PointCloudColorHandler<PointT>::cloud_;
Expand Down Expand Up @@ -247,8 +228,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

protected:
// Members derived from the base class
using PointCloudColorHandler<PointT>::cloud_;
Expand Down Expand Up @@ -298,8 +277,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

/** \brief Set the input cloud to be used.
* \param[in] cloud the input cloud to be used by the handler
*/
Expand Down Expand Up @@ -348,8 +325,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

protected:
/** \brief Class getName method. */
virtual std::string
Expand Down Expand Up @@ -410,8 +385,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

/** \brief Set the input cloud to be used.
* \param[in] cloud the input cloud to be used by the handler
*/
Expand Down Expand Up @@ -474,8 +447,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<PointT>::getColor;

/** \brief Set the input cloud to be used.
* \param[in] cloud the input cloud to be used by the handler
*/
Expand Down Expand Up @@ -606,22 +577,7 @@ namespace pcl
* \return smart pointer to VTK array if the operation was successful (the
* handler is capable and the input cloud was given), a null pointer otherwise */
virtual vtkSmartPointer<vtkDataArray>
getColor () const {
vtkSmartPointer<vtkDataArray> scalars;
getColor (scalars);
return scalars;
}

/** Obtain the actual color for the input dataset as a VTK data array.
* This virtual method should not be overriden or used. The default implementation
* is provided only for backwards compatibility with handlers that were written
* before PCL 1.10.0 and will be removed in future. */
PCL_DEPRECATED(1, 12, "use getColor() without parameters instead")
virtual bool
getColor (vtkSmartPointer<vtkDataArray> &scalars) const {
scalars = getColor ();
return scalars.Get() != nullptr;
}
getColor() const = 0;

/** \brief Set the input cloud to be used.
* \param[in] cloud the input cloud to be used by the handler
Expand Down Expand Up @@ -681,8 +637,6 @@ namespace pcl

vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;
};

//////////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -722,8 +676,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Internal R, G, B holding the values given by the user. */
double r_, g_, b_;
Expand Down Expand Up @@ -755,8 +707,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Get the name of the class. */
virtual std::string
Expand Down Expand Up @@ -792,8 +742,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Get the name of the class. */
virtual std::string
Expand Down Expand Up @@ -837,8 +785,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Get the name of the class. */
virtual std::string
Expand Down Expand Up @@ -879,8 +825,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Get the name of the class. */
virtual std::string
Expand Down Expand Up @@ -919,8 +863,6 @@ namespace pcl
vtkSmartPointer<vtkDataArray>
getColor () const override;

using PointCloudColorHandler<pcl::PCLPointCloud2>::getColor;

protected:
/** \brief Get the name of the class. */
virtual std::string
Expand Down
10 changes: 0 additions & 10 deletions visualization/src/pcl_visualizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1926,16 +1926,6 @@ pcl::visualization::PCLVisualizer::getCameraFile () const
return (style_->getCameraFile ());
}

/////////////////////////////////////////////////////////////////////////////////////////////
PCL_DEPRECATED(1, 12, "This method can safely not be called anymore as we're just re-rendering all scenes now.")
void
pcl::visualization::PCLVisualizer::updateCamera ()
{
rens_->InitTraversal ();
// Update the camera parameters
win_->Render ();
}

/////////////////////////////////////////////////////////////////////////////////////////////
bool
pcl::visualization::PCLVisualizer::updateShapePose (const std::string &id, const Eigen::Affine3f& pose)
Expand Down

0 comments on commit 31dd8f4

Please sign in to comment.