ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
vtk2cc.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 // Local
11 #include "qPCL.h"
12 
13 // CV_DB_LIB
14 #include <ecvColorTypes.h>
15 
16 class ccHObject;
17 class ccMesh;
18 class ccPointCloud;
19 class ccPolyline;
20 class vtkPolyData;
21 
24 public:
25  static ccPointCloud* ConvertToPointCloud(vtkPolyData* polydata,
26  bool silent = false);
27  static ccMesh* ConvertToMesh(vtkPolyData* polydata, bool silent = false);
28  static ccPolyline* ConvertToPolyline(vtkPolyData* polydata,
29  bool silent = false);
30 
31  static ccPolyline* ConvertToPolyline(ccPointCloud* vertices);
32  static std::vector<ccHObject*> ConvertToMultiPolylines(
33  vtkPolyData* polydata,
34  QString baseName = "Slice",
36 };
math::float4 color
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Triangular mesh.
Definition: ecvMesh.h:35
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Colored polyline.
Definition: ecvPolyline.h:24
RGB color structure.
Definition: ecvColorTypes.h:49
CC to PCL cloud converter.
Definition: vtk2cc.h:23
constexpr Rgb green(0, MAX, 0)
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15