Public Types | Public Member Functions
NAModelsPlotProperties Class Reference

#include <NAModelsPlotProperties.h>

Inheritance diagram for NAModelsPlotProperties:
QGpGuiTools::PropertyWidget

List of all members.

Public Types

enum  Properties { DotDiameter, ParamX, ParamY }

Public Member Functions

 NAModelsPlotProperties (QWidget *parent=0)
int paramX ()
int paramY ()
void setParameterList (const InversionThread *paramSet)

Member Enumeration Documentation

Enumerator:
DotDiameter 
ParamX 
ParamY 

Constructor & Destructor Documentation

References QGpGuiTools::PropertyWidget::addProperty(), DotDiameter, ParamX, ParamY, and TRACE.

    : PropertyWidget(parent)
{
  TRACE;
  setupUi(this);

  addProperty(DotDiameter, dotDiam, dotDiamLabel);
  addProperty(ParamX, paramListX, paramListXLabel);
  addProperty(ParamY, paramListY, paramListYLabel);
}

Member Function Documentation

References TRACE.

{
  TRACE;
  return paramListX->currentIndex() - 1;
}

References TRACE.

{
  TRACE;
  return paramListY->currentIndex() - 1;
}

References DinverCore::Parameter::name(), str, QGpCoreTools::tr(), TRACE, DinverCore::Parameter::unit(), InversionThread::variableParameter(), and InversionThread::variableParameterCount().

Referenced by NAModelsPlot::addProperties().

{
  TRACE;
  int n=t->variableParameterCount();
  for(int i=0;i < n;i++ ) {
    QString str=tr( "%1 (%2)").arg(t->variableParameter(i)->name())
                                .arg(t->variableParameter(i)->unit());
    paramListX->addItem(str);
    paramListY->addItem(str);
  }
}

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