ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qClassify3DMASCDialog.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 // # ACLOUDVIEWER PLUGIN: q3DMASC #
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: Dimitri Lague / CNRS / UEB #
24 // # #
25 // ##########################################################################
26 
27 // Qt
28 #include <ui_Classify3DMASCDialog.h>
29 
30 #include <QDialog>
31 
33 class ccPointCloud;
34 
36 class Classify3DMASCDialog : public QDialog, public Ui::Classify3DMASCDialog {
37  Q_OBJECT
38 
39 public:
41  Classify3DMASCDialog(ecvMainAppInterface* app, bool trainMode = false);
43 
45  void readSettings();
47  void writeSettings();
48 
50  void setCloudRoles(const QList<QString>& roles,
51  QString& corePointsLabel,
52  const QMap<QString, QString>& rolesAndNames);
53 
56  void setComboBoxIndex(const QMap<QString, QString>& rolesAndNames,
57  QLabel* label,
58  const QMap<QString, QVariant>& namesAndUniqueIds,
59  QComboBox* comboBox);
60 
62  void getClouds(QMap<QString, ccPointCloud*>& clouds) const;
63 
64 protected slots:
65 
66  void onCloudChanged(int);
67 
68 protected:
71 };
#define slots
3DMASC plugin 'classify' dialog
void writeSettings()
write settings
void setCloudRoles(const QList< QString > &roles, QString &corePointsLabel, const QMap< QString, QString > &rolesAndNames)
Sets the clouds roles.
Classify3DMASCDialog(ecvMainAppInterface *app, bool trainMode=false)
Default constructor.
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
void getClouds(QMap< QString, ccPointCloud * > &clouds) const
Returns the selected point clouds.
void setComboBoxIndex(const QMap< QString, QString > &rolesAndNames, QLabel *label, const QMap< QString, QVariant > &namesAndUniqueIds, QComboBox *comboBox)
void readSettings()
read settings
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)