ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qCanupoTrainingDialog.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_qCanupoTrainingDialog.h>
11 
13 class ccPointCloud;
14 
16 class qCanupoTrainingDialog : public QDialog, public Ui::CanupoTrainingDialog {
17  Q_OBJECT
18 
19 public:
22 
31 
36 
38  bool getScales(std::vector<float>& scales) const;
40  int getMaxThreadCount() const;
41 
43  unsigned getDescriptorID() const;
44 
45 protected slots:
46 
47  void onClassChanged(int);
48  void onCloudChanged(int);
49 
50 protected:
53 
54  // Returns whether the current parameters are valid or not
55  bool validParameters() const;
56 };
#define slots
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)
CANUPO plugin's training dialog.
ccPointCloud * getEvaluationCloud()
Get evaluation point cloud.
bool getScales(std::vector< float > &scales) const
Returns input scales.
ccPointCloud * getClass1Cloud()
Get class #1 point cloud.
void saveParamsToPersistentSettings()
Saves parameters to persistent settings.
qCanupoTrainingDialog(ecvMainAppInterface *app)
Default constructor.
unsigned getDescriptorID() const
Returns the selected descriptor ID.
ecvMainAppInterface * m_app
Gives access to the application (data-base, UI, etc.)
void loadParamsFromPersistentSettings()
Loads parameters from persistent settings.
ccPointCloud * getOriginPointCloud()
Get origin point cloud.
int getMaxThreadCount() const
Returns the max number of threads to use.
ccPointCloud * getClass2Cloud()
Get class #2 point cloud.