Files
ptrans/QuantiDialog.cpp
T

36 lines
1.7 KiB
C++
Raw Normal View History

2020-05-02 10:27:30 +02:00
#include "QuantiDialog.h"
2020-09-13 15:47:24 +02:00
//##########################################################################
//# #
//# CLOUDCOMPARE PLUGIN: ColorimetricSegmenter #
//# #
//# This program is free software; you can redistribute it and/or modify #
//# it under the terms of the GNU General Public License as published by #
//# the Free Software Foundation; version 2 of the License. #
//# #
//# This program is distributed in the hope that it will be useful, #
//# but WITHOUT ANY WARRANTY; without even the implied warranty of #
//# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
//# GNU General Public License for more details. #
//# #
//# COPYRIGHT: Tri-Thien TRUONG, Ronan COLLIER, Mathieu LETRONE #
//# #
//##########################################################################
2020-05-02 10:27:30 +02:00
QuantiDialog::QuantiDialog(QWidget* parent)
: QDialog(parent)
, Ui::QuantiDialog()
{
setupUi(this);
2020-05-07 11:20:12 +02:00
2020-09-13 15:47:24 +02:00
connect(area_quanti, static_cast<void(QSpinBox::*)(int)>(&QSpinBox::valueChanged), this, &QuantiDialog::updateLabelValues);
2020-05-07 11:20:12 +02:00
}
/*
Method applied after entering a value in RGB text fields
*/
void QuantiDialog::updateLabelValues()
{
2020-09-13 15:47:24 +02:00
int value = area_quanti->value();
nb_color_label->setText(QString::number(value*value*value));
2020-05-02 10:27:30 +02:00
}