Public Member Functions
MagnetoTelluricThread Class Reference

Brief description of class still missing. More...

#include <MagnetoTelluricThread.h>

Inheritance diagram for MagnetoTelluricThread:
CurvesThread ResultsThread QGpCoreTools::Thread

List of all members.

Public Member Functions

virtual void addModel (GeophysicalModel *m)
virtual void clear ()
virtual ResultsThreadclone () const
virtual void initModelGraphs (GraphicSheet *sheet)
virtual void initModelGraphs (const ResultsThread &o)
virtual void initResultsGraphs (GraphicSheet *sheet)
virtual void initResultsGraphs (const ResultsThread &o)
virtual LegendWidgetlegend () const
 MagnetoTelluricThread (QObject *parent=0)
 MagnetoTelluricThread (const MagnetoTelluricThread &o)
virtual void modelDeepUpdate ()
virtual void resultsDeepUpdate ()
virtual void setModel (GeophysicalModel *m)
virtual void setModelLimits ()
virtual bool setParameters (int &argc, char **argv)
virtual void setResultsLimits ()
 ~MagnetoTelluricThread ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References TRACE.

Referenced by clone().

    : CurvesThread(parent)
{
  TRACE;
  _res=0;
  _leg=0;
  _appRes=0;
  _phase=0;
}

Description of constructor still missing

References TRACE.

    : CurvesThread(o)
{
  TRACE;
  _res=0;
  _leg=0;
  _appRes=0;
  _phase=0;
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

void MagnetoTelluricThread::clear ( ) [virtual]

Reimplemented from CurvesThread.

References SciFigs::LineLayer::clear(), resultsDeepUpdate(), and TRACE.

{
  TRACE;
  _res->clear();
  _appRes->clear();
  _phase->clear();
  resultsDeepUpdate();
}
virtual ResultsThread* MagnetoTelluricThread::clone ( ) const [inline, virtual]

Implements ResultsThread.

References MagnetoTelluricThread().

{return new MagnetoTelluricThread(*this);}

Implements ResultsThread.

References SciFigs::GraphicSheet::addObject(), ResultsThread::createLegend(), SciFigs::GraphicSheet::printRight(), SciFigs::LineLayer::setReferenceLine(), SciFigs::Axis::setReversedScale(), SciFigs::Axis::setScaleType(), SciFigs::Axis::setTitle(), SciFigs::GraphicSheet::showObject(), QGpCoreTools::tr(), TRACE, w, SciFigs::AxisWindow::xAxis(), and SciFigs::AxisWindow::yAxis().

{
  TRACE;
  AxisWindow * w;

  w=new AxisWindow;
  GraphicSheetMenu::setGraphGeometry(w, sheet->printRight(), 6.0, 0.5, 8.0);
  w->yAxis()->setReversedScale(true);
  w->yAxis()->setTitle(tr("Depth (m)"));
  w->xAxis()->setScaleType(Scale::Log);
  w->xAxis()->setTitle(tr("Resistivity (ohm m)"));
  _res=new LineLayer(w);
  _res->setObjectName("background Res");
  _res->setReferenceLine(new PlotLine2D);
  sheet->addObject(w);
  sheet->showObject(w);

  _leg=createLegend(sheet, sheet->printRight(), 0.5, tr("Background models"));
  connect(_leg, SIGNAL(changed( Legend) ), _res, SLOT(setLegend( Legend) ));
}

Implements ResultsThread.

References SciFigs::LineLayer::addLine(), ResultsThread::createLegend(), SciFigs::GraphContentLayer::graph(), SciFigs::GraphicSheet::printRight(), SciFigs::LineLayer::setReferenceLine(), SciFigs::GraphicObject::sheet(), QGpCoreTools::tr(), TRACE, and w.

{
  TRACE;
  const MagnetoTelluricThread& om=static_cast<const MagnetoTelluricThread&>(o);
  AxisWindow * w;

  w=om._res->graph();
  _res=new LineLayer(w);
  _res->setObjectName("foreground Res");
  _res->setReferenceLine(new PlotLine2D);
  _res->addLine(Pen(), Symbol());

  _leg=createLegend(w->sheet(), w->sheet()->printRight(), 0.5, tr("Foreground models"));
  connect(_leg, SIGNAL(changed( Legend) ), _res, SLOT(setLegend( Legend) ));
}

Reimplemented from CurvesThread.

References SciFigs::GraphicSheet::addObject(), SciFigs::GraphicSheet::autoResizeContent(), legend(), SciFigs::GraphicSheet::printRight(), SciFigs::LineLayer::setPointOptions(), SciFigs::LineLayer::setReferenceLine(), SciFigs::Axis::setReversedScale(), SciFigs::Axis::setTitle(), SciFigs::Axis::setUnitFactor(), SciFigs::GraphicSheet::showObject(), QGpCoreTools::tr(), TRACE, w, and SciFigs::AxisWindow::xAxis().

{
  TRACE;
  AxisWindow * w;

  w=new AxisWindow;
  GraphicSheetMenu::setGraphGeometry(w, sheet->printRight(), 7.0, 0.5, 8.0);
  GraphicSheetMenu::setFrequencyTitles(w, tr("Apparent resistivity (ohm m)"), tr("Apparent condictivity (S/m)"), Number::Fixed);
  w->xAxis()->setUnitFactor(0.001);
  w->xAxis()->setTitle(tr("Frequency (kHz)"));
  w->xAxis()->setReversedScale(true);

  sheet->addObject(w);
  sheet->showObject(w);
  sheet->autoResizeContent();

  _appRes=new LineLayer(w);
  _appRes->setObjectName(objectName()+" app. res.");
  _appRes->setReferenceLine(new MagnetoTelluricLine);
  _appRes->setPointOptions(new MagnetoTelluricPointOptions(MagnetoTelluricPointOptions::ApparentResistivity));
  QObject::connect(legend(), SIGNAL(changed( Legend) ), _appRes, SLOT(setLegend( Legend) ));

  w=new AxisWindow;
  GraphicSheetMenu::setGraphGeometry(w, sheet->printRight(), 7.0, 0.5, 8.0);
  GraphicSheetMenu::setFrequencyTitles(w, tr("Phase (degrees)"), tr("1/phase (1/degrees)"), Number::Fixed);
  w->xAxis()->setUnitFactor(0.001);
  w->xAxis()->setTitle(tr("Frequency (kHz)"));
  w->xAxis()->setReversedScale(true);

  sheet->addObject(w);
  sheet->showObject(w);
  sheet->autoResizeContent();

  _phase=new LineLayer(w);
  _phase->setObjectName(objectName()+" phase");
  _phase->setReferenceLine(new MagnetoTelluricLine);
  _phase->setPointOptions(new MagnetoTelluricPointOptions(MagnetoTelluricPointOptions::PhaseDegrees));
  QObject::connect(legend(), SIGNAL(changed( Legend) ), _phase, SLOT(setLegend( Legend) ));
}

Reimplemented from CurvesThread.

References SciFigs::GraphContentLayer::graph(), legend(), SciFigs::LineLayer::setPointOptions(), SciFigs::LineLayer::setReferenceLine(), and TRACE.

{
  TRACE;
  const MagnetoTelluricThread& om=static_cast<const MagnetoTelluricThread&>(o);
  _appRes=new LineLayer(om._appRes->graph());
  _appRes->setObjectName(objectName()+" app. res.");
  _appRes->setReferenceLine(new MagnetoTelluricLine);
  _appRes->setPointOptions(new MagnetoTelluricPointOptions(MagnetoTelluricPointOptions::ApparentResistivity));
  connect(legend(), SIGNAL(changed( Legend) ), _appRes, SLOT(setLegend( Legend) ));

  _phase=new LineLayer(om._phase->graph());
  _phase->setObjectName(objectName()+" phase");
  _phase->setReferenceLine(new MagnetoTelluricLine);
  _phase->setPointOptions(new MagnetoTelluricPointOptions(MagnetoTelluricPointOptions::PhaseDegrees));
  QObject::connect(legend(), SIGNAL(changed( Legend) ), _phase, SLOT(setLegend( Legend) ));
}
virtual LegendWidget* MagnetoTelluricThread::legend ( ) const [inline, virtual]

Implements CurvesThread.

Referenced by initResultsGraphs().

{return _leg;}

Reimplemented from CurvesThread.

References SciFigs::AxisWindow::deepUpdate(), SciFigs::GraphContentLayer::graph(), and TRACE.

Referenced by clear().

{
  TRACE;
  _appRes->graph()->deepUpdate();
  _phase->graph()->deepUpdate();
}
bool MagnetoTelluricThread::setParameters ( int &  argc,
char **  argv 
) [virtual]

Reimplemented from CurvesThread.

References TRACE.

{
  TRACE;
  return CurvesThread::setParameters(argc, argv);
}

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