ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
pointstopolydataconverter.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 #include "../qPCL.h"
11 
12 // CV_CORE_LIB
13 #include <CVGeom.h>
14 #include <vtkSmartPointer.h>
15 
16 #include <QVector>
17 
18 #include "point3f.h"
19 #include "signalledrunable.h"
20 
21 class vtkPolyData;
22 namespace VtkUtils {
24  Q_OBJECT
25 public:
27  const QVector<Point3F>& points,
28  const QVector<Tuple3ui>& vertices = QVector<Tuple3ui>());
29 
30  void run();
31 
32  vtkPolyData* polyData() const;
33 
34 private:
35  QVector<Point3F> m_points;
36  QVector<Tuple3ui> m_vertices;
38 };
39 
40 } // namespace VtkUtils
VtkUtils::PointsToPolyDataConverter::PointsToPolyDataConverter
PointsToPolyDataConverter(const QVector< Point3F > &points, const QVector< Tuple3ui > &vertices=QVector< Tuple3ui >())
Definition: pointstopolydataconverter.cpp:17
VtkUtils::Point3F::y
qreal y
Definition: point3f.h:16
VTK_CREATE
#define VTK_CREATE(type, name)
Definition: vtkMinkowskiFilter.cxx:24
VtkUtils::Point3F
Definition: point3f.h:14
vtkSmartPointer< vtkPolyData >
VtkUtils::SignalledRunnable::finished
void finished()
VtkUtils::vtkInitOnce
void vtkInitOnce(T **obj)
Definition: vtkutils.h:44
CVGeom.h
VtkUtils::Point3F::x
qreal x
Definition: point3f.h:15
vtkutils.h
points
int points
Definition: FileIOFactory.cpp:144
VtkUtils::PointsToPolyDataConverter::polyData
vtkPolyData * polyData() const
Definition: pointstopolydataconverter.cpp:58
QPCL_ENGINE_LIB_API
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15
VtkUtils
Definition: VtkMultiTextureRenderer.cpp:46
VtkUtils::SignalledRunnable
Definition: signalledrunable.h:17
VtkUtils::PointsToPolyDataConverter::run
void run()
Definition: pointstopolydataconverter.cpp:21
VtkUtils::Point3F::z
qreal z
Definition: point3f.h:17
point3f.h
pointstopolydataconverter.h
signalledrunable.h
VtkUtils::PointsToPolyDataConverter
Definition: pointstopolydataconverter.h:23