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 };
ccSmoothPolylineDialog::ccSmoothPolylineDialog
ccSmoothPolylineDialog(QWidget *parent=nullptr)
Default constructor.
Definition: ecvSmoothPolylineDlg.cpp:16
ccSmoothPolylineDialog::getRatio
double getRatio() const
Returns the smoothing ratio.
Definition: ecvSmoothPolylineDlg.cpp:40
ccSmoothPolylineDialog::setRatio
void setRatio(double ratio)
Sets the smoothing ratio.
Definition: ecvSmoothPolylineDlg.cpp:32
ecvSmoothPolylineDlg.h
ccSmoothPolylineDialog::m_ui
Ui_SmoothPolylineDialog * m_ui
Associated ui.
Definition: ecvSmoothPolylineDlg.h:58
ccSmoothPolylineDialog
Dialog to smooth a polyline (Chaikin algorithm)
Definition: ecvSmoothPolylineDlg.h:36
ccSmoothPolylineDialog::getIerationCount
int getIerationCount() const
Returns the number of iterations.
Definition: ecvSmoothPolylineDlg.cpp:36
ccSmoothPolylineDialog::setIerationCount
void setIerationCount(int count)
Sets the number of iterations.
Definition: ecvSmoothPolylineDlg.cpp:28
count
int count
Definition: FileIOFactory.cpp:132
ccSmoothPolylineDialog::~ccSmoothPolylineDialog
virtual ~ccSmoothPolylineDialog()
Destructor.
Definition: ecvSmoothPolylineDlg.cpp:21
ecvHObject.h