All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Signals | Public Member Functions
QGpGuiTools::SmoothingParameterWidget Class Reference

Brief description of class still missing. More...

#include <SmoothingParameterWidget.h>

List of all members.

Signals

void parametersChanged ()

Public Member Functions

void getParameters (SmoothingParameters &param) const
void removeNoSmoothing ()
void setParameters (const SmoothingParameters &param)
 SmoothingParameterWidget (QWidget *parent=0)
void updateAllFields ()
 ~SmoothingParameterWidget ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

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()) );
  }

Description of destructor still missing

References TRACE.

  {
    TRACE;
  }

Member Function Documentation

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;
    }
  }
{type->removeItem(4);}

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;
    }
  }
{on_type_activated(0);}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines