| 1 |
#pragma once |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
#include "PCLCloud.h" |
| 22 |
|
| 23 |
|
| 24 |
#include <ccPointCloud.h> |
| 25 |
|
| 26 |
|
| 27 |
#include <FileIOFilter.h> |
| 28 |
|
| 29 |
class ccGLMatrixd; |
| 30 |
|
| 31 |
|
| 32 |
class pcl2cc |
| 33 |
{ |
| 34 |
public: |
| 35 |
|
| 36 |
|
| 37 |
static ccPointCloud* Convert( const PCLCloud& pclCloud, |
| 38 |
ccGLMatrixd* _transform = nullptr, |
| 39 |
FileIOFilter::LoadParameters* _loadParameters = nullptr ); |
| 40 |
|
| 41 |
public: |
| 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 |
}; |