ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
contour.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 "surface.h"
11 #include "vector4f.h"
12 
13 namespace VtkUtils {
14 class ContourPrivate;
16  Q_OBJECT
17 public:
18  explicit Contour(QWidget* parent = nullptr);
19  ~Contour();
20 
21  void setVectors(const QList<Vector4F>& vectors);
22 
23  void setNumberOfContours(int num);
24  int numberOfContours() const;
25 
26  void setPlaneVisible(bool visible = true);
27  bool planeVisible() const;
28 
29  void setPlaneDistance(qreal distance);
30  bool planeDistance() const;
31 
32 protected:
33  void renderSurface();
34 
35 private:
36  ContourPrivate* d_ptr;
37  Q_DISABLE_COPY(Contour)
38 };
39 
40 } // namespace VtkUtils
static double distance(T *pot1, T *pot2)
Definition: utils.h:111
#define QPCL_ENGINE_LIB_API
Definition: qPCL.h:15