ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvSmoothPolylineDlg.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 #
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: ACloudViewer project #
24 // # #
25 // ##########################################################################
26 
27 // qCC_db
28 #include <ecvHObject.h>
29 
30 // Qt
31 #include <QDialog>
32 
33 class Ui_SmoothPolylineDialog;
34 
36 class ccSmoothPolylineDialog : public QDialog {
37 public:
39  ccSmoothPolylineDialog(QWidget* parent = nullptr);
40 
42  virtual ~ccSmoothPolylineDialog();
43 
45  void setIerationCount(int count);
46 
48  void setRatio(double ratio);
49 
51  int getIerationCount() const;
52 
54  double getRatio() const;
55 
56 protected:
58  Ui_SmoothPolylineDialog* m_ui;
59 };
int count
Dialog to smooth a polyline (Chaikin algorithm)
Ui_SmoothPolylineDialog * m_ui
Associated ui.
void setRatio(double ratio)
Sets the smoothing ratio.
void setIerationCount(int count)
Sets the number of iterations.
virtual ~ccSmoothPolylineDialog()
Destructor.
int getIerationCount() const
Returns the number of iterations.
double getRatio() const
Returns the smoothing ratio.
ccSmoothPolylineDialog(QWidget *parent=nullptr)
Default constructor.