Public Member Functions
DispersionGridThread Class Reference

Brief description of class still missing. More...

#include <DispersionGridThread.h>

Inheritance diagram for DispersionGridThread:
Seismic1DThread CurvesThread ResultsThread QGpCoreTools::Thread

List of all members.

Public Member Functions

virtual ResultsThreadclone () const
 DispersionGridThread (QObject *parent=0)
 DispersionGridThread (const DispersionGridThread &o)
virtual void initResultsGraphs (GraphicSheet *sheet)
virtual void initResultsGraphs (const ResultsThread &o)
virtual void resultsDeepUpdate ()
virtual void setLimits ()
virtual bool setParameters (int &argc, char **argv)
 ~DispersionGridThread ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

DispersionGridThread::DispersionGridThread ( QObject *  parent = 0)

Description of constructor still missing

References TRACE.

Referenced by clone().

    : Seismic1DThread(parent)
{
  TRACE;
  _polarisation=Mode::Rayleigh;
  _vMinRange=100.0;
  _vMaxRange=1000.0;
}

References TRACE.

    : Seismic1DThread(o)
{
  TRACE;
  _polarisation=o._polarisation;
  _vMinRange=o._vMinRange;
  _vMaxRange=o._vMaxRange;
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

virtual ResultsThread* DispersionGridThread::clone ( ) const [inline, virtual]

Implements ResultsThread.

References DispersionGridThread().

{return new DispersionGridThread(*this);}

Reimplemented from CurvesThread.

References SciFigs::GraphicSheet::addObject(), SciFigs::GraphicSheet::autoResizeContent(), SciFigs::GraphicSheet::printRight(), SciFigs::LiveGridLayer::setForceMaximumValue(), SciFigs::LiveGridLayer::setForceMinimumValue(), SciFigs::LiveGridLayer::setMaximumValue(), SciFigs::LiveGridLayer::setMinimumValue(), SciFigs::GraphicSheet::showObject(), QGpCoreTools::tr(), TRACE, and w.

Referenced by initResultsGraphs().

{
  TRACE;
  AxisWindow * w=new AxisWindow;
  GraphicSheetMenu::setGraphGeometry(w, sheet->printRight(), 10.0, 0.5, 8.0);
  sheet->addObject(w);
  sheet->showObject(w);
  sheet->autoResizeContent();

  _layer=new LiveGridLayer(w);
  _layer->setObjectName(objectName()+" grid");
  _layer->setForceMinimumValue(true);
  _layer->setMinimumValue( -10.0);
  _layer->setForceMaximumValue(true);
  _layer->setMaximumValue(10.0);

  GraphicSheetMenu::setFrequencyTitles(w, tr("Slowness (s/m)"), tr("Velocity (m/s)"), Number::Fixed);
}
virtual void DispersionGridThread::initResultsGraphs ( const ResultsThread o) [inline, virtual]

Reimplemented from CurvesThread.

References initResultsGraphs().

void DispersionGridThread::setLimits ( ) [virtual]

References SciFigs::GraphContentLayer::graph(), SciFigs::Axis::setRange(), TRACE, SciFigs::AxisWindow::xAxis(), and SciFigs::AxisWindow::yAxis().

{
  TRACE;
  _layer->graph()->xAxis()->setRange(_xMinRange, _xMaxRange);
  _layer->graph()->yAxis()->setRange(_vMinRange*0.9, _vMaxRange*1.1);
}
bool DispersionGridThread::setParameters ( int &  argc,
char **  argv 
) [virtual]

Reimplemented from Seismic1DThread.

References TRACE.

{
  TRACE;
  int i, j=1;
  for(i=1; i<argc; i++) {
    QByteArray arg=argv[i];
    if(arg[0]=='-') {
      if(arg=="-grid") {
        CoreApplication::checkOptionArg(i, argc, argv);
        if(argv[i][0]=='R') {
          _polarisation=Mode::Rayleigh;
        } else {
          _polarisation=Mode::Love;
        }
      } else if(arg=="-vmin") {
        CoreApplication::checkOptionArg(i, argc, argv);
        _vMinRange=atof(argv[i]);
      } else if(arg=="-vmax") {
        CoreApplication::checkOptionArg(i, argc, argv);
        _vMaxRange=atof(argv[i]);
      } else {
        argv[j++]=argv[i];
      }
    } else {
      argv[j++]=argv[i];
    }
  }
  if(j < argc) {
    argv[j]=0;
    argc=j;
  }
  return true;
}

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