ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvPtsSamplingDlg.cpp
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 #include "ecvPtsSamplingDlg.h"
9 
10 ccPtsSamplingDlg::ccPtsSamplingDlg(QWidget* parent /*=0*/)
11  : QDialog(parent, Qt::Tool), Ui::PointsSamplingDialog() {
12  setupUi(this);
13 }
14 
16  return normalsCheckBox->isChecked();
17 }
18 
20  normalsCheckBox->setChecked(state);
21 }
22 
24  return colorsCheckBox->isChecked();
25 }
26 
28  return textureCheckBox->isChecked();
29 }
30 
31 bool ccPtsSamplingDlg::useDensity() const { return dRadioButton->isChecked(); }
32 
34  dRadioButton->setChecked(state);
35 }
36 
38  return dDoubleSpinBox->value();
39 }
40 
41 void ccPtsSamplingDlg::setDensityValue(double density) {
42  dDoubleSpinBox->setValue(density);
43 }
44 
46  return pnSpinBox->value();
47 }
48 
50  pnSpinBox->setValue(count);
51 }
int count
unsigned getPointsNumber() const
double getDensityValue() const
bool generateNormals() const
void setDensityValue(double density)
ccPtsSamplingDlg(QWidget *parent=0)
Default constructor.
bool interpolateTexture() const
void setPointsNumber(int count)
bool useDensity() const
void setGenerateNormals(bool state)
void setUseDensity(bool state)
bool interpolateRGB() const