All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Brief description of class still missing. More...
#include <SmoothingParameterWidget.h>
Signals | |
void | parametersChanged () |
Public Member Functions | |
void | getParameters (SmoothingParameters ¶m) const |
void | removeNoSmoothing () |
void | setParameters (const SmoothingParameters ¶m) |
SmoothingParameterWidget (QWidget *parent=0) | |
void | updateAllFields () |
~SmoothingParameterWidget () |
Brief description of class still missing.
Full description of class still missing
QGpGuiTools::SmoothingParameterWidget::SmoothingParameterWidget | ( | QWidget * | parent = 0 | ) |
Description of constructor still missing
References parametersChanged(), and TRACE.
: QWidget(parent) { TRACE; setupUi(this); // signals and slots connections connect(constant, SIGNAL(valueChanged( const QString& )), this, SIGNAL(parametersChanged()) ); }
void QGpGuiTools::SmoothingParameterWidget::getParameters | ( | SmoothingParameters & | param | ) | const |
References QGpCoreTools::SmoothingParameters::setConstant(), QGpCoreTools::SmoothingParameters::setType(), and TRACE.
{ TRACE; switch(type->currentIndex()) { case 1: param.setType(SmoothingParameters::Constant); param.setConstant(constant->value()); break; case 2: param.setType(SmoothingParameters::Proportional); param.setConstant(constant->value()*0.01); break; case 3: param.setType(SmoothingParameters::NoSmoothing); param.setConstant(constant->value()); break; default: param.setType(SmoothingParameters::KonnoOhmachi); param.setConstant(constant->value()); break; } }
void QGpGuiTools::SmoothingParameterWidget::parametersChanged | ( | ) | [signal] |
Referenced by SmoothingParameterWidget().
void QGpGuiTools::SmoothingParameterWidget::removeNoSmoothing | ( | ) | [inline] |
{type->removeItem(4);}
void QGpGuiTools::SmoothingParameterWidget::setParameters | ( | const SmoothingParameters & | param | ) |
References QGpCoreTools::SmoothingParameters::constant(), TRACE, and QGpCoreTools::SmoothingParameters::type().
{ TRACE; switch(param.type()) { case SmoothingParameters::KonnoOhmachi: type->setCurrentIndex(0); constant->setValue(param.constant()); break; case SmoothingParameters::Constant: type->setCurrentIndex(1); constant->setValue(param.constant()); break; case SmoothingParameters::Proportional: type->setCurrentIndex(2); constant->setValue(param.constant()*100.0); break; case SmoothingParameters::NoSmoothing: type->setCurrentIndex(3); constant->setValue(param.constant()); break; } }
void QGpGuiTools::SmoothingParameterWidget::updateAllFields | ( | ) | [inline] |
{on_type_activated(0);}