Brief description of class still missing. More...
#include <DispersionGridThread.h>
Public Member Functions | |
| virtual ResultsThread * | clone () 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 () | |
Brief description of class still missing.
Full description of class still missing
| 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; }
| virtual ResultsThread* DispersionGridThread::clone | ( | ) | const [inline, virtual] |
Implements ResultsThread.
References DispersionGridThread().
{return new DispersionGridThread(*this);}
| void DispersionGridThread::initResultsGraphs | ( | GraphicSheet * | sheet | ) | [virtual] |
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::resultsDeepUpdate | ( | ) | [virtual] |
Reimplemented from CurvesThread.
References SciFigs::AxisWindow::deepUpdate(), SciFigs::GraphContentLayer::graph(), and TRACE.
{
TRACE;
_layer->graph()->deepUpdate();
}
| void DispersionGridThread::setLimits | ( | ) | [virtual] |
| 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;
}