ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
FastGlobalRegistrationDlg.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 // ##########################################################################
11 // # #
12 // # CloudViewer #
13 // # #
14 // # This program is free software; you can redistribute it and/or modify #
15 // # it under the terms of the GNU General Public License as published by #
16 // # the Free Software Foundation; version 2 or later of the License. #
17 // # #
18 // # This program is distributed in the hope that it will be useful, #
19 // # but WITHOUT ANY WARRANTY; without even the implied warranty of #
20 // # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
21 // # GNU General Public License for more details. #
22 // # #
23 // # COPYRIGHT: EDF R&D / TELECOM ParisTech (ENST-TSI) #
24 // # #
25 // ##########################################################################
26 
27 // Qt
28 #include <ui_FastGlobalRegistrationDlg.h>
29 
30 #include <QDialog>
31 
32 class ccPointCloud;
33 
35 class FastGlobalRegistrationDialog : public QDialog,
36  public Ui::FastGlobalRegistrationDialog {
37  Q_OBJECT
38 
39 public:
41  FastGlobalRegistrationDialog(const std::vector<ccPointCloud*>& allClouds,
42  QWidget* parent = nullptr);
43 
46 
48  double getFeatureRadius() const;
49 
52 
54  void saveParameters() const;
55 
56 protected:
57  void autoEstimateRadius();
58  void referenceEntityChanged(int index);
59 
60 protected:
61  void updateGUI();
62 
64  std::vector<ccPointCloud*> clouds;
65 
68 };
Fast Global Registration dialog.
double getFeatureRadius() const
Returns the feature descritor comptation radius.
unsigned referencesCloudUinqueID
Reference cloud unique ID.
FastGlobalRegistrationDialog(const std::vector< ccPointCloud * > &allClouds, QWidget *parent=nullptr)
Default constructor.
std::vector< ccPointCloud * > clouds
All clouds (input)
void saveParameters() const
Saves parameters for next call.
~FastGlobalRegistrationDialog() override
Default destructor.
ccPointCloud * getReferenceCloud()
Returns the 'reference' cloud.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)