ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
point_types.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7// PCL point-cloud type aliases used throughout the library. Include this
8// (rather than the <reusex/types.hpp> umbrella) when a TU needs the point-cloud
9// containers but not the Eigen helpers, so unrelated TUs are not forced to pull
10// in PCL.
11
12#include <pcl/pcl_base.h>
13#include <pcl/point_cloud.h>
14#include <pcl/point_types.h>
15
16namespace reusex {
17
18using PointT = pcl::PointXYZRGB;
19using NormalT = pcl::Normal;
20using LabelT = pcl::Label;
21using LocT = pcl::PointXYZ;
22
23using Indices = pcl::Indices;
24using IndicesPtr = pcl::IndicesPtr;
25using IndicesConstPtr = pcl::IndicesConstPtr;
26
27using Cloud = pcl::PointCloud<PointT>;
28using CloudPtr = typename Cloud::Ptr;
29using CloudConstPtr = typename Cloud::ConstPtr;
30
31using CloudN = pcl::PointCloud<NormalT>;
32using CloudNPtr = typename CloudN::Ptr;
33using CloudNConstPtr = typename CloudN::ConstPtr;
34
35using CloudL = pcl::PointCloud<LabelT>;
36using CloudLPtr = typename CloudL::Ptr;
37using CloudLConstPtr = typename CloudL::ConstPtr;
38
39using CloudLoc = pcl::PointCloud<LocT>;
40using CloudLocPtr = typename CloudLoc::Ptr;
41using CloudLocConstPtr = typename CloudLoc::ConstPtr;
42
43} // namespace reusex
typename CloudN::Ptr CloudNPtr
pcl::IndicesConstPtr IndicesConstPtr
pcl::PointCloud< PointT > Cloud
typename CloudL::Ptr CloudLPtr
typename CloudL::ConstPtr CloudLConstPtr
typename Cloud::ConstPtr CloudConstPtr
typename CloudLoc::ConstPtr CloudLocConstPtr
pcl::IndicesPtr IndicesPtr
typename Cloud::Ptr CloudPtr
pcl::PointXYZRGB PointT
typename CloudLoc::Ptr CloudLocPtr
pcl::Indices Indices
pcl::Normal NormalT
pcl::PointXYZ LocT
pcl::PointCloud< LabelT > CloudL
pcl::PointCloud< LocT > CloudLoc
pcl::PointCloud< NormalT > CloudN
pcl::Label LabelT
typename CloudN::ConstPtr CloudNConstPtr