From 8849555dd681df509e50e85a0b92e46da7fd141a Mon Sep 17 00:00:00 2001 From: Heiko Thiel Date: Thu, 6 Jun 2019 12:43:04 +0200 Subject: [PATCH] Changes are done by: run-clang-tidy -header-filter='.' -checks='-,modernize-use-using' -fix --- simulation/include/pcl/simulation/camera.h | 4 +-- .../include/pcl/simulation/glsl_shader.h | 4 +-- simulation/include/pcl/simulation/model.h | 28 +++++++++---------- .../include/pcl/simulation/range_likelihood.h | 4 +-- simulation/include/pcl/simulation/scene.h | 4 +-- simulation/tools/sim_viewer.cpp | 12 ++++---- simulation/tools/simulation_io.hpp | 4 +-- .../pcl/stereo/disparity_map_converter.h | 2 +- .../pcl/surface/bilateral_upsampling.h | 2 +- surface/include/pcl/surface/concave_hull.h | 10 +++---- surface/include/pcl/surface/convex_hull.h | 10 +++---- surface/include/pcl/surface/ear_clipping.h | 4 +-- surface/include/pcl/surface/gp3.h | 14 +++++----- surface/include/pcl/surface/grid_projection.h | 10 +++---- surface/include/pcl/surface/impl/mls.hpp | 2 +- surface/include/pcl/surface/marching_cubes.h | 10 +++---- .../pcl/surface/marching_cubes_hoppe.h | 10 +++---- .../include/pcl/surface/marching_cubes_rbf.h | 10 +++---- surface/include/pcl/surface/mls.h | 22 +++++++-------- .../include/pcl/surface/organized_fast_mesh.h | 8 +++--- surface/include/pcl/surface/poisson.h | 10 +++---- surface/include/pcl/surface/processing.h | 6 ++-- surface/include/pcl/surface/reconstruction.h | 16 +++++------ .../simplification_remove_unused_vertices.h | 4 +-- .../include/pcl/surface/surfel_smoothing.h | 12 ++++---- surface/include/pcl/surface/texture_mapping.h | 22 +++++++-------- .../src/3rdparty/opennurbs/opennurbs_mesh.cpp | 2 +- .../opennurbs/opennurbs_mesh_tools.cpp | 2 +- .../3rdparty/opennurbs/opennurbs_rtree.cpp | 6 ++-- 29 files changed, 127 insertions(+), 127 deletions(-) diff --git a/simulation/include/pcl/simulation/camera.h b/simulation/include/pcl/simulation/camera.h index 764eb66dbad..b178e9fde0c 100644 --- a/simulation/include/pcl/simulation/camera.h +++ b/simulation/include/pcl/simulation/camera.h @@ -13,8 +13,8 @@ namespace pcl class PCL_EXPORTS Camera { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; Camera () : x_ (0), y_ (0), z_ (0), roll_ (0), pitch_ (0), yaw_ (0) { diff --git a/simulation/include/pcl/simulation/glsl_shader.h b/simulation/include/pcl/simulation/glsl_shader.h index f22cbbbf7e2..5f699a66e01 100644 --- a/simulation/include/pcl/simulation/glsl_shader.h +++ b/simulation/include/pcl/simulation/glsl_shader.h @@ -31,8 +31,8 @@ namespace pcl class PCL_EXPORTS Program { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; /** * Construct an empty shader program. diff --git a/simulation/include/pcl/simulation/model.h b/simulation/include/pcl/simulation/model.h index d166867be3d..c2fceaf1ad6 100644 --- a/simulation/include/pcl/simulation/model.h +++ b/simulation/include/pcl/simulation/model.h @@ -27,13 +27,13 @@ namespace pcl { namespace simulation { - typedef struct _SinglePoly + struct SinglePoly { float* vertices_; float* colors_; GLenum mode_; GLuint nvertices_; - } SinglePoly; + }; struct Vertex { @@ -56,23 +56,23 @@ namespace pcl Eigen::Vector3f norm; }; - typedef std::vector Vertices; - typedef std::vector Indices; + using Vertices = std::vector; + using Indices = std::vector; class Model { public: virtual void draw () = 0; - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; }; class PCL_EXPORTS TriangleMeshModel : public Model { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; TriangleMeshModel (pcl::PolygonMesh::Ptr plg); @@ -97,8 +97,8 @@ namespace pcl virtual ~PolygonMeshModel(); void draw() override; - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; private: std::vector polygons; @@ -120,8 +120,8 @@ namespace pcl class PCL_EXPORTS PointCloudModel : public Model { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; PointCloudModel (GLenum mode, pcl::PointCloud::Ptr pc); @@ -185,8 +185,8 @@ namespace pcl class PCL_EXPORTS TexturedQuad { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; TexturedQuad (int width, int height); ~TexturedQuad (); diff --git a/simulation/include/pcl/simulation/range_likelihood.h b/simulation/include/pcl/simulation/range_likelihood.h index 288a1e971bf..7cf4023ad98 100644 --- a/simulation/include/pcl/simulation/range_likelihood.h +++ b/simulation/include/pcl/simulation/range_likelihood.h @@ -30,8 +30,8 @@ namespace pcl class PCL_EXPORTS RangeLikelihood { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; public: /** diff --git a/simulation/include/pcl/simulation/scene.h b/simulation/include/pcl/simulation/scene.h index c0f0308a9f9..19b1e56628d 100644 --- a/simulation/include/pcl/simulation/scene.h +++ b/simulation/include/pcl/simulation/scene.h @@ -22,8 +22,8 @@ namespace pcl class PCL_EXPORTS Scene { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; void draw (); diff --git a/simulation/tools/sim_viewer.cpp b/simulation/tools/sim_viewer.cpp index fff0847d35f..0c679e7db48 100644 --- a/simulation/tools/sim_viewer.cpp +++ b/simulation/tools/sim_viewer.cpp @@ -106,13 +106,13 @@ using namespace pcl::simulation; using namespace std; -typedef pcl::visualization::PointCloudColorHandler ColorHandler; -typedef ColorHandler::Ptr ColorHandlerPtr; -typedef ColorHandler::ConstPtr ColorHandlerConstPtr; +using ColorHandler = pcl::visualization::PointCloudColorHandler; +using ColorHandlerPtr = ColorHandler::Ptr; +using ColorHandlerConstPtr = ColorHandler::ConstPtr; -typedef pcl::visualization::PointCloudGeometryHandler GeometryHandler; -typedef GeometryHandler::Ptr GeometryHandlerPtr; -typedef GeometryHandler::ConstPtr GeometryHandlerConstPtr; +using GeometryHandler = pcl::visualization::PointCloudGeometryHandler; +using GeometryHandlerPtr = GeometryHandler::Ptr; +using GeometryHandlerConstPtr = GeometryHandler::ConstPtr; #define NORMALS_SCALE 0.01 #define PC_SCALE 0.001 diff --git a/simulation/tools/simulation_io.hpp b/simulation/tools/simulation_io.hpp index 8c1a1b52c94..7be86de761a 100644 --- a/simulation/tools/simulation_io.hpp +++ b/simulation/tools/simulation_io.hpp @@ -37,8 +37,8 @@ namespace pcl class PCL_EXPORTS SimExample { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; SimExample (int argc, char** argv, int height,int width); diff --git a/stereo/include/pcl/stereo/disparity_map_converter.h b/stereo/include/pcl/stereo/disparity_map_converter.h index 7dcdae3d83a..66d28ee5830 100644 --- a/stereo/include/pcl/stereo/disparity_map_converter.h +++ b/stereo/include/pcl/stereo/disparity_map_converter.h @@ -77,7 +77,7 @@ namespace pcl class DisparityMapConverter { protected: - typedef pcl::PointCloud PointCloud; + using PointCloud = pcl::PointCloud; public: /** \brief DisparityMapConverter constructor. */ diff --git a/surface/include/pcl/surface/bilateral_upsampling.h b/surface/include/pcl/surface/bilateral_upsampling.h index b9f6d3bc213..d73022269e3 100644 --- a/surface/include/pcl/surface/bilateral_upsampling.h +++ b/surface/include/pcl/surface/bilateral_upsampling.h @@ -70,7 +70,7 @@ namespace pcl using PCLBase::deinitCompute; using CloudSurfaceProcessing::process; - typedef pcl::PointCloud PointCloudOut; + using PointCloudOut = pcl::PointCloud; Eigen::Matrix3f KinectVGAProjectionMatrix, KinectSXGAProjectionMatrix; diff --git a/surface/include/pcl/surface/concave_hull.h b/surface/include/pcl/surface/concave_hull.h index 2c47158ee4e..fe6843fe0a7 100644 --- a/surface/include/pcl/surface/concave_hull.h +++ b/surface/include/pcl/surface/concave_hull.h @@ -55,8 +55,8 @@ namespace pcl class ConcaveHull : public MeshConstruction { protected: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using PCLBase::input_; using PCLBase::indices_; @@ -66,9 +66,9 @@ namespace pcl public: using MeshConstruction::reconstruct; - typedef pcl::PointCloud PointCloud; - typedef typename PointCloud::Ptr PointCloudPtr; - typedef typename PointCloud::ConstPtr PointCloudConstPtr; + using PointCloud = pcl::PointCloud; + using PointCloudPtr = typename PointCloud::Ptr; + using PointCloudConstPtr = typename PointCloud::ConstPtr; /** \brief Empty constructor. */ ConcaveHull () : alpha_ (0), keep_information_ (false), voronoi_centers_ (), dim_(0) diff --git a/surface/include/pcl/surface/convex_hull.h b/surface/include/pcl/surface/convex_hull.h index 098ea94a0a8..74d7103e88b 100644 --- a/surface/include/pcl/surface/convex_hull.h +++ b/surface/include/pcl/surface/convex_hull.h @@ -77,14 +77,14 @@ namespace pcl using PCLBase::deinitCompute; public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using MeshConstruction::reconstruct; - typedef pcl::PointCloud PointCloud; - typedef typename PointCloud::Ptr PointCloudPtr; - typedef typename PointCloud::ConstPtr PointCloudConstPtr; + using PointCloud = pcl::PointCloud; + using PointCloudPtr = typename PointCloud::Ptr; + using PointCloudConstPtr = typename PointCloud::ConstPtr; /** \brief Empty constructor. */ ConvexHull () : compute_area_ (false), total_area_ (0), total_volume_ (0), dimension_ (0), diff --git a/surface/include/pcl/surface/ear_clipping.h b/surface/include/pcl/surface/ear_clipping.h index 87dacba2097..e09c7c3db62 100644 --- a/surface/include/pcl/surface/ear_clipping.h +++ b/surface/include/pcl/surface/ear_clipping.h @@ -52,8 +52,8 @@ namespace pcl class PCL_EXPORTS EarClipping : public MeshProcessing { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; using MeshProcessing::input_mesh_; using MeshProcessing::initCompute; diff --git a/surface/include/pcl/surface/gp3.h b/surface/include/pcl/surface/gp3.h index d54f973b722..8f7a6444820 100644 --- a/surface/include/pcl/surface/gp3.h +++ b/surface/include/pcl/surface/gp3.h @@ -136,19 +136,19 @@ namespace pcl class GreedyProjectionTriangulation : public MeshConstruction { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using MeshConstruction::tree_; using MeshConstruction::input_; using MeshConstruction::indices_; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; - typedef pcl::PointCloud PointCloudIn; - typedef typename PointCloudIn::Ptr PointCloudInPtr; - typedef typename PointCloudIn::ConstPtr PointCloudInConstPtr; + using PointCloudIn = pcl::PointCloud; + using PointCloudInPtr = typename PointCloudIn::Ptr; + using PointCloudInConstPtr = typename PointCloudIn::ConstPtr; enum GP3Type { diff --git a/surface/include/pcl/surface/grid_projection.h b/surface/include/pcl/surface/grid_projection.h index 4774f2f3e27..d042e5eb403 100644 --- a/surface/include/pcl/surface/grid_projection.h +++ b/surface/include/pcl/surface/grid_projection.h @@ -73,16 +73,16 @@ namespace pcl class GridProjection : public SurfaceReconstruction { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using SurfaceReconstruction::input_; using SurfaceReconstruction::tree_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; /** \brief Data leaf. */ struct Leaf diff --git a/surface/include/pcl/surface/impl/mls.hpp b/surface/include/pcl/surface/impl/mls.hpp index d26b9f47ac4..61ce714c391 100644 --- a/surface/include/pcl/surface/impl/mls.hpp +++ b/surface/include/pcl/surface/impl/mls.hpp @@ -150,7 +150,7 @@ pcl::MovingLeastSquares::process (PointCloudOut &output) for (size_t i = 0; i < output.size (); ++i) { - typedef typename pcl::traits::fieldList::type FieldList; + using FieldList = typename pcl::traits::fieldList::type; pcl::for_each_type (SetIfFieldExists (output.points[i], "normal_x", normals_->points[i].normal_x)); pcl::for_each_type (SetIfFieldExists (output.points[i], "normal_y", normals_->points[i].normal_y)); pcl::for_each_type (SetIfFieldExists (output.points[i], "normal_z", normals_->points[i].normal_z)); diff --git a/surface/include/pcl/surface/marching_cubes.h b/surface/include/pcl/surface/marching_cubes.h index 57f776fdedc..5069e869016 100644 --- a/surface/include/pcl/surface/marching_cubes.h +++ b/surface/include/pcl/surface/marching_cubes.h @@ -362,16 +362,16 @@ namespace pcl class MarchingCubes : public SurfaceReconstruction { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using SurfaceReconstruction::input_; using SurfaceReconstruction::tree_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; /** \brief Constructor. */ MarchingCubes (const float percentage_extend_grid = 0.0f, diff --git a/surface/include/pcl/surface/marching_cubes_hoppe.h b/surface/include/pcl/surface/marching_cubes_hoppe.h index b7c1b99c14a..cdde73d04ca 100644 --- a/surface/include/pcl/surface/marching_cubes_hoppe.h +++ b/surface/include/pcl/surface/marching_cubes_hoppe.h @@ -51,8 +51,8 @@ namespace pcl class MarchingCubesHoppe : public MarchingCubes { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using SurfaceReconstruction::input_; using SurfaceReconstruction::tree_; @@ -64,10 +64,10 @@ namespace pcl using MarchingCubes::upper_boundary_; using MarchingCubes::lower_boundary_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; /** \brief Constructor. */ diff --git a/surface/include/pcl/surface/marching_cubes_rbf.h b/surface/include/pcl/surface/marching_cubes_rbf.h index edeb0fc9ea1..ebe9627a4d0 100644 --- a/surface/include/pcl/surface/marching_cubes_rbf.h +++ b/surface/include/pcl/surface/marching_cubes_rbf.h @@ -53,8 +53,8 @@ namespace pcl class MarchingCubesRBF : public MarchingCubes { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using SurfaceReconstruction::input_; using SurfaceReconstruction::tree_; @@ -66,10 +66,10 @@ namespace pcl using MarchingCubes::upper_boundary_; using MarchingCubes::lower_boundary_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; /** \brief Constructor. */ diff --git a/surface/include/pcl/surface/mls.h b/surface/include/pcl/surface/mls.h index 7cd7a760bcb..5d336c4ab4f 100644 --- a/surface/include/pcl/surface/mls.h +++ b/surface/include/pcl/surface/mls.h @@ -260,20 +260,20 @@ namespace pcl using PCLBase::initCompute; using PCLBase::deinitCompute; - typedef pcl::search::Search KdTree; - typedef typename KdTree::Ptr KdTreePtr; - typedef pcl::PointCloud NormalCloud; - typedef NormalCloud::Ptr NormalCloudPtr; + using KdTree = pcl::search::Search; + using KdTreePtr = typename KdTree::Ptr; + using NormalCloud = pcl::PointCloud; + using NormalCloudPtr = NormalCloud::Ptr; - typedef pcl::PointCloud PointCloudOut; - typedef typename PointCloudOut::Ptr PointCloudOutPtr; - typedef typename PointCloudOut::ConstPtr PointCloudOutConstPtr; + using PointCloudOut = pcl::PointCloud; + using PointCloudOutPtr = typename PointCloudOut::Ptr; + using PointCloudOutConstPtr = typename PointCloudOut::ConstPtr; - typedef pcl::PointCloud PointCloudIn; - typedef typename PointCloudIn::Ptr PointCloudInPtr; - typedef typename PointCloudIn::ConstPtr PointCloudInConstPtr; + using PointCloudIn = pcl::PointCloud; + using PointCloudInPtr = typename PointCloudIn::Ptr; + using PointCloudInConstPtr = typename PointCloudIn::ConstPtr; - typedef std::function &, std::vector &)> SearchMethod; + using SearchMethod = std::function &, std::vector &)>; enum UpsamplingMethod { diff --git a/surface/include/pcl/surface/organized_fast_mesh.h b/surface/include/pcl/surface/organized_fast_mesh.h index a58d20f7f83..8a6ba831482 100644 --- a/surface/include/pcl/surface/organized_fast_mesh.h +++ b/surface/include/pcl/surface/organized_fast_mesh.h @@ -64,15 +64,15 @@ namespace pcl class OrganizedFastMesh : public MeshConstruction { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using MeshConstruction::input_; using MeshConstruction::check_tree_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef std::vector Polygons; + using Polygons = std::vector; enum TriangulationType { diff --git a/surface/include/pcl/surface/poisson.h b/surface/include/pcl/surface/poisson.h index 076831f2a57..8f0703b3b3e 100644 --- a/surface/include/pcl/surface/poisson.h +++ b/surface/include/pcl/surface/poisson.h @@ -59,16 +59,16 @@ namespace pcl class Poisson : public SurfaceReconstruction { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using SurfaceReconstruction::input_; using SurfaceReconstruction::tree_; - typedef typename pcl::PointCloud::Ptr PointCloudPtr; + using PointCloudPtr = typename pcl::PointCloud::Ptr; - typedef pcl::KdTree KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::KdTree; + using KdTreePtr = typename KdTree::Ptr; /** \brief Constructor that sets all the parameters to working default values. */ Poisson (); diff --git a/surface/include/pcl/surface/processing.h b/surface/include/pcl/surface/processing.h index 196297e10a0..7c542526abb 100644 --- a/surface/include/pcl/surface/processing.h +++ b/surface/include/pcl/surface/processing.h @@ -93,10 +93,10 @@ namespace pcl class PCL_EXPORTS MeshProcessing { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; - typedef PolygonMesh::ConstPtr PolygonMeshConstPtr; + using PolygonMeshConstPtr = PolygonMesh::ConstPtr; /** \brief Constructor. */ MeshProcessing () {} diff --git a/surface/include/pcl/surface/reconstruction.h b/surface/include/pcl/surface/reconstruction.h index 549339d7ba9..9a9cfa87ab2 100644 --- a/surface/include/pcl/surface/reconstruction.h +++ b/surface/include/pcl/surface/reconstruction.h @@ -60,11 +60,11 @@ namespace pcl class PCLSurfaceBase: public PCLBase { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; - typedef pcl::search::Search KdTree; - typedef typename KdTree::Ptr KdTreePtr; + using KdTree = pcl::search::Search; + using KdTreePtr = typename KdTree::Ptr; /** \brief Empty constructor. */ PCLSurfaceBase () : tree_ () {} @@ -118,8 +118,8 @@ namespace pcl class SurfaceReconstruction: public PCLSurfaceBase { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using PCLSurfaceBase::input_; using PCLSurfaceBase::indices_; @@ -187,8 +187,8 @@ namespace pcl class MeshConstruction: public PCLSurfaceBase { public: - typedef boost::shared_ptr > Ptr; - typedef boost::shared_ptr > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; using PCLSurfaceBase::input_; using PCLSurfaceBase::indices_; diff --git a/surface/include/pcl/surface/simplification_remove_unused_vertices.h b/surface/include/pcl/surface/simplification_remove_unused_vertices.h index 5da9da7450c..42b2a2a6413 100644 --- a/surface/include/pcl/surface/simplification_remove_unused_vertices.h +++ b/surface/include/pcl/surface/simplification_remove_unused_vertices.h @@ -48,8 +48,8 @@ namespace pcl class PCL_EXPORTS SimplificationRemoveUnusedVertices { public: - typedef boost::shared_ptr Ptr; - typedef boost::shared_ptr ConstPtr; + using Ptr = boost::shared_ptr; + using ConstPtr = boost::shared_ptr; /** \brief Constructor. */ SimplificationRemoveUnusedVertices () {}; diff --git a/surface/include/pcl/surface/surfel_smoothing.h b/surface/include/pcl/surface/surfel_smoothing.h index 4bac249c0f7..810fbe620c0 100644 --- a/surface/include/pcl/surface/surfel_smoothing.h +++ b/surface/include/pcl/surface/surfel_smoothing.h @@ -52,12 +52,12 @@ namespace pcl typedef boost::shared_ptr > Ptr; typedef boost::shared_ptr > ConstPtr; - typedef pcl::PointCloud PointCloudIn; - typedef typename pcl::PointCloud::Ptr PointCloudInPtr; - typedef pcl::PointCloud NormalCloud; - typedef typename pcl::PointCloud::Ptr NormalCloudPtr; - typedef pcl::search::Search CloudKdTree; - typedef typename pcl::search::Search::Ptr CloudKdTreePtr; + using PointCloudIn = pcl::PointCloud; + using PointCloudInPtr = typename pcl::PointCloud::Ptr; + using NormalCloud = pcl::PointCloud; + using NormalCloudPtr = typename pcl::PointCloud::Ptr; + using CloudKdTree = pcl::search::Search; + using CloudKdTreePtr = typename pcl::search::Search::Ptr; SurfelSmoothing (float a_scale = 0.01) : PCLBase () diff --git a/surface/include/pcl/surface/texture_mapping.h b/surface/include/pcl/surface/texture_mapping.h index 1c13606583b..a5e39c9f48a 100644 --- a/surface/include/pcl/surface/texture_mapping.h +++ b/surface/include/pcl/surface/texture_mapping.h @@ -85,7 +85,7 @@ namespace pcl int idx_face; // Face corresponding to that projection }; - typedef std::vector > CameraVector; + using CameraVector = std::vector >; } @@ -98,19 +98,19 @@ namespace pcl { public: - typedef boost::shared_ptr< TextureMapping < PointInT > > Ptr; - typedef boost::shared_ptr< const TextureMapping < PointInT > > ConstPtr; + using Ptr = boost::shared_ptr >; + using ConstPtr = boost::shared_ptr >; - typedef pcl::PointCloud PointCloud; - typedef typename PointCloud::Ptr PointCloudPtr; - typedef typename PointCloud::ConstPtr PointCloudConstPtr; + using PointCloud = pcl::PointCloud; + using PointCloudPtr = typename PointCloud::Ptr; + using PointCloudConstPtr = typename PointCloud::ConstPtr; - typedef pcl::octree::OctreePointCloudSearch Octree; - typedef typename Octree::Ptr OctreePtr; - typedef typename Octree::ConstPtr OctreeConstPtr; + using Octree = pcl::octree::OctreePointCloudSearch; + using OctreePtr = typename Octree::Ptr; + using OctreeConstPtr = typename Octree::ConstPtr; - typedef pcl::texture_mapping::Camera Camera; - typedef pcl::texture_mapping::UvIndex UvIndex; + using Camera = pcl::texture_mapping::Camera; + using UvIndex = pcl::texture_mapping::UvIndex; /** \brief Constructor. */ TextureMapping () : diff --git a/surface/src/3rdparty/opennurbs/opennurbs_mesh.cpp b/surface/src/3rdparty/opennurbs/opennurbs_mesh.cpp index 5b0fda7f809..a062d91eaf9 100644 --- a/surface/src/3rdparty/opennurbs/opennurbs_mesh.cpp +++ b/surface/src/3rdparty/opennurbs/opennurbs_mesh.cpp @@ -5898,7 +5898,7 @@ static int compare3dPoint( const ON_3dPoint* a, const ON_3dPoint* b ) return 0; } -typedef int (*ON_COMPAR_LPVOID_LPVOID)(const void*,const void*); +using ON_COMPAR_LPVOID_LPVOID = int (*)(const void *, const void *); static int GetPointMap( int pt_count, const ON_3fPoint* fV, const ON_3dPoint* dV, ON_SimpleArray& pt_map ) diff --git a/surface/src/3rdparty/opennurbs/opennurbs_mesh_tools.cpp b/surface/src/3rdparty/opennurbs/opennurbs_mesh_tools.cpp index 158b8614af9..5e89a54296a 100644 --- a/surface/src/3rdparty/opennurbs/opennurbs_mesh_tools.cpp +++ b/surface/src/3rdparty/opennurbs/opennurbs_mesh_tools.cpp @@ -186,7 +186,7 @@ class ON__NEWVI int newvi; }; -typedef int (*QSORTCMPFUNC)(const void*,const void*); +using QSORTCMPFUNC = int (*)(const void *, const void *); static int CompareMESHEDGE( const ON__MESHEDGE* a, const ON__MESHEDGE* b ) { diff --git a/surface/src/3rdparty/opennurbs/opennurbs_rtree.cpp b/surface/src/3rdparty/opennurbs/opennurbs_rtree.cpp index 9fdc568f8ea..cc172ec07f9 100644 --- a/surface/src/3rdparty/opennurbs/opennurbs_rtree.cpp +++ b/surface/src/3rdparty/opennurbs/opennurbs_rtree.cpp @@ -43,7 +43,7 @@ struct ON_RTreePartitionVars double m_coverSplitArea; }; -typedef bool (*ON_RTreeSearchCallback)(void* a_context, ON__INT_PTR a_id ); +using ON_RTreeSearchCallback = bool (*)(void *, ON__INT_PTR); struct ON_RTreeSearchResultCallback { @@ -1158,7 +1158,7 @@ bool ON_RTree::Search( return true; } -typedef void (*ON_RTreePairSearchCallback)(void*, ON__INT_PTR, ON__INT_PTR); +using ON_RTreePairSearchCallback = void (*)(void *, ON__INT_PTR, ON__INT_PTR); struct ON_RTreePairSearchCallbackResult { @@ -1167,7 +1167,7 @@ struct ON_RTreePairSearchCallbackResult ON_RTreePairSearchCallback m_resultCallback; }; -typedef bool (*ON_RTreePairSearchCallbackBool)(void*, ON__INT_PTR, ON__INT_PTR); +using ON_RTreePairSearchCallbackBool = bool (*)(void *, ON__INT_PTR, ON__INT_PTR); struct ON_RTreePairSearchCallbackResultBool {