ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
TemplateAlignmentDialog.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_TemplateAlignmentDialog.h>
11 
12 // Qt
13 #include <QDialog>
14 
16 class ccPointCloud;
17 class ccHObject;
18 
20 class TemplateAlignmentDialog : public QDialog,
21  public Ui::TemplateAlignmentDialog {
22  Q_OBJECT
23 
24 public:
27 
34 
39 
41  bool getScales(std::vector<float>& scales) const;
43  int getMaxThreadCount() const;
44 
46  int getMaxIterations() const;
47 
48  float getVoxelGridLeafSize() const;
49 
51  float getNormalRadius() const;
53  float getFeatureRadius() const;
55  float getMinSampleDistance() const;
57  float getMaxCorrespondenceDistance() const;
58 
59  void refreshCloudComboBox();
60 
61 protected slots:
62  void onCloudChanged(int);
63 
64 protected:
67 
68  // Returns whether the current parameters are valid or not
69  bool validParameters() const;
70 
71  QString getEntityName(ccHObject* obj);
72 
73  ccPointCloud* getCloudFromCombo(QComboBox* comboBox, ccHObject* dbRoot);
74 };
#define slots
CANUPO plugin's training dialog.
float getMaxCorrespondenceDistance() const
Returns the Maximum Correspondence Distance.
TemplateAlignmentDialog(ecvMainAppInterface *app)
Default constructor.
float getFeatureRadius() const
Returns the Feature Radius.
float getMinSampleDistance() const
Returns the Minimum Sample Distance.
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
void loadParamsFromPersistentSettings()
Loads parameters from persistent settings.
bool getScales(std::vector< float > &scales) const
Returns input scales.
int getMaxIterations() const
Returns the Maximum Iterations.
int getMaxThreadCount() const
Returns the max number of threads to use.
void saveParamsToPersistentSettings()
Saves parameters to persistent settings.
ccPointCloud * getTemplate1Cloud()
Get template #1 point cloud.
float getNormalRadius() const
Returns the Normal Radius.
ccPointCloud * getCloudFromCombo(QComboBox *comboBox, ccHObject *dbRoot)
ccPointCloud * getTemplate2Cloud()
Get template #2 point cloud.
ccPointCloud * getEvaluationCloud()
Get evaluation point cloud.
QString getEntityName(ccHObject *obj)
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)