Debian Codegraph @

plugins/core/Standard/qPCL/PclUtils/utils/sm2cc.h

raw symbols SCIP
1 #pragma once
2
3 //##########################################################################
4 //# #
5 //# CLOUDCOMPARE PLUGIN: qPCL #
6 //# #
7 //# This program is free software; you can redistribute it and/or modify #
8 //# it under the terms of the GNU General Public License as published by #
9 //# the Free Software Foundation; version 2 or later of the License. #
10 //# #
11 //# This program is distributed in the hope that it will be useful, #
12 //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 //# GNU General Public License for more details. #
15 //# #
16 //# COPYRIGHT: Luca Penasa #
17 //# #
18 //##########################################################################
19
20 //Local
21 #include "PCLCloud.h"
22
23 //qCC_db
24 #include <ccPointCloud.h>
25
26 //qCC_io
27 #include <FileIOFilter.h>
28
29 class ccGLMatrixd;
30
31 //! PCL to CC cloud converter
32 class pcl2cc
33 {
34 public:
35
36 //! Converts a PCL point cloud to a ccPointCloud
37 static ccPointCloud* Convert( const PCLCloud& pclCloud,
38 ccGLMatrixd* _transform = nullptr,
39 FileIOFilter::LoadParameters* _loadParameters = nullptr );
40
41 public: // other related utility functions
42
43 static bool CopyXYZ(const PCLCloud& pclCloud,
44 ccPointCloud& ccCloud,
45 uint8_t coordinateType,
46 ccGLMatrixd* _transform = nullptr,
47 FileIOFilter::LoadParameters* _loadParameters = nullptr);
48 static bool CopyNormals(const PCLCloud& pclCloud, ccPointCloud& ccCloud);
49 static bool CopyRGB(const PCLCloud& pclCloud, ccPointCloud& ccCloud);
50 static bool CopyScalarField(const PCLCloud& pclCloud, const std::string& sfName, ccPointCloud& ccCloud, bool overwriteIfExist = true);
51
52 };