ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
QuantiDialog.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 "
QuantiDialog.h
"
9
10
// ##########################################################################
11
// # #
12
// # CLOUDVIEWER PLUGIN: ColorimetricSegmenter #
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 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: Tri-Thien TRUONG, Ronan COLLIER, Mathieu LETRONE #
24
// # #
25
// ##########################################################################
26
27
QuantiDialog::QuantiDialog
(QWidget* parent)
28
: QDialog(parent),
Ui
::
QuantiDialog
() {
29
setupUi(
this
);
30
31
connect(area_quanti,
32
static_cast<
void
(QSpinBox::*)(
int
)
>
(&QSpinBox::valueChanged),
this
,
33
&
QuantiDialog::updateLabelValues
);
34
}
35
/*
36
Method applied after entering a value in RGB text fields
37
*/
38
void
QuantiDialog::updateLabelValues
() {
39
int
value = area_quanti->value();
40
nb_color_label->setText(QString::number(value * value * value));
41
}
QuantiDialog.h
QuantiDialog
Definition:
QuantiDialog.h:32
QuantiDialog::updateLabelValues
void updateLabelValues()
Definition:
QuantiDialog.cpp:38
QuantiDialog::QuantiDialog
QuantiDialog(QWidget *parent=nullptr)
Definition:
QuantiDialog.cpp:27
Ui
Definition:
ecvFontPropertyWidget.h:19
plugins
core
Standard
qColorimetricSegmenter
QuantiDialog.cpp
Generated on Wed Jan 28 2026 09:01:07 for ACloudViewer by
1.9.1