ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qVoxFallDialog.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 <ui_qVoxFallDialog.h>
11 
12 // Qt
13 #include <QSettings>
14 
16 class ccMesh;
17 
19 class qVoxFallDialog : public QDialog, public Ui::VoxFallDialog {
20  Q_OBJECT
21 
22 public:
24  qVoxFallDialog(ccMesh* mesh1, ccMesh* mesh2, ecvMainAppInterface* app);
25 
27  ccMesh* getMesh1() const { return m_mesh1; }
29  ccMesh* getMesh2() const { return m_mesh2; }
30 
32  double getVoxelSize() const;
34  double getAzimuth() const;
36  bool getExportMeshesActivation() const;
38  bool getLossGainActivation() const;
39 
41  int getMaxThreadCount() const;
42 
44  void loadParamsFrom(const QSettings& settings);
46  void saveParamsTo(QSettings& settings);
47 
48 protected:
49  void swapMeshes();
50  void setMesh1Visibility(bool);
51  void setMesh2Visibility(bool);
52 
53 protected: // methods
55  void setMeshes(ccMesh* mesh1, ccMesh* mesh2);
56 
57 protected: // members
59 
62 };
Triangular mesh.
Definition: ecvMesh.h:35
Main application interface (for plugins)
VOXFALL plugin's main dialog.
ccMesh * m_mesh1
ccMesh * getMesh1() const
Returns mesh #1.
void setMesh1Visibility(bool)
void loadParamsFromPersistentSettings()
void setMeshes(ccMesh *mesh1, ccMesh *mesh2)
Sets meshes.
void saveParamsToPersistentSettings()
bool getExportMeshesActivation() const
Returns whether the blocks will be exported as meshes.
void loadParamsFrom(const QSettings &settings)
bool getLossGainActivation() const
Labels the blocks as loss or gain clusters.
void saveParamsTo(QSettings &settings)
double getVoxelSize() const
Returns voxel size.
ccMesh * m_mesh2
ccMesh * getMesh2() const
Returns mesh #2.
ecvMainAppInterface * m_app
void setMesh2Visibility(bool)
int getMaxThreadCount() const
Returns the max number of threads to use.
qVoxFallDialog(ccMesh *mesh1, ccMesh *mesh2, ecvMainAppInterface *app)
Default constructor.
double getAzimuth() const
Returns slope azimuth.