ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
SACSegmentation.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 "BasePclModule.h"
11 
12 // QT
13 #include <QString>
14 
15 class SACSegmentationDlg;
16 
19 public:
21  virtual ~SACSegmentation();
22 
23  // inherited from BasePclModule
24  virtual int compute();
25 
26 protected:
27  // inherited from BasePclModule
28  virtual int checkSelected();
29  virtual int openInputDialog();
30  virtual void getParametersFromDialog();
31  virtual int checkParameters();
32  virtual QString getErrorMessage(int errorCode);
33 
34  // int extractRecursive(
35  // PointCloudT::Ptr xyzCloud,
36  // PointCloudT::Ptr cloudRemained,
37  // std::vector<PointCloudT::Ptr> &cloudExtractions,
38  // bool recursive = false);
39 
41 
42  QString m_selectedModel;
44 
52 
55 
57  float m_leafSize;
61 };
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
SIFT keypoints extraction.
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
virtual ~SACSegmentation()
virtual int checkSelected()
Checks if current selection is compliant with the filter.
virtual int openInputDialog()
QString m_selectedModel
virtual int compute()
Performs the actual filter job.
SACSegmentationDlg * m_dialog
QString m_selectedMethod
virtual int checkParameters()