Public Slots | Public Member Functions | Protected Member Functions
ToolLinearFKPassive Class Reference

Brief description of class still missing. More...

#include <ToolLinearFKPassive.h>

Inheritance diagram for ToolLinearFKPassive:
ToolFK ToolArrayBase GeopsyGui::ToolBase

List of all members.

Public Slots

void finishPositive ()
virtual void start ()

Public Member Functions

virtual bool initStations (SubSignalPool *subPool)
 ToolLinearFKPassive (QWidget *parent)

Protected Member Functions

virtual const char * toolName ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References GeopsyGui::ToolBase::setWindowTitle(), and TRACE.

    : ToolFK(parent)
{
  TRACE;
  setWindowTitle( "Linear FK for passive measurements Toolbox" );
  setObjectName("ToolLinearFKPassive");
}

Member Function Documentation

References ToolFK::_d, ToolFK::_loop, ToolFK::_param, LinearFKPassiveLoop::azimuth(), QGpCoreTools::SamplingParameters::count(), ToolFK::finish(), ArrayCore::ArrayParameters::frequencySampling(), LinearFKPassiveLoop::setAzimuth(), QGpCoreTools::ParallelLoop::start(), and QGpCoreTools::tr().

Referenced by start().

{
  // Scan in azimuth opposite direction
  _d->mainStatus->setText(tr("Running backwards..."));
  LinearFKPassiveLoop * loop=static_cast<LinearFKPassiveLoop *>(_loop);
  loop->setAzimuth(loop->azimuth()-M_PI);
  disconnect(_loop, SIGNAL(finished()), this, SLOT(finishPositive()));
  connect(_loop, SIGNAL(finished()), this, SLOT(finish()));
  _loop->start(0, _param->frequencySampling().count());
}
bool ToolLinearFKPassive::initStations ( SubSignalPool subPool) [virtual]

Reimplemented from ToolFK.

References ToolArrayBase::_array, GeopsyCore::StationList::components(), ToolFK::initStations(), MSG_ID, and QGpCoreTools::tr().

{
  if(!ToolFK::initStations(subPool)) return false;
  if(_array.components()!=StationSignals::VerticalComponent) {
    Message::warning(MSG_ID, windowTitle(), tr( "Only vertical component are accepted for "
                         "pssive recording with linear arrays." ));
    return false;
  }
  return true;
}
void ToolLinearFKPassive::start ( ) [virtual, slot]

Reimplemented from ToolFK.

References ToolArrayBase::_array, ToolFK::_d, ToolArrayBase::_log, finishPositive(), ToolFKd::outputFile(), ToolFK::parameters(), ToolArrayBase::resetLogs(), FKLoop::setArray(), LinearFKPassiveLoop::setAzimuth(), ArrayCore::FKParameters::setExportAllFKGrids(), FKLoop::setLog(), ArrayCore::ArrayParameters::setOutputFile(), FKLoop::setParameters(), ToolFK::startLoop(), GeopsyGui::ToolBase::subPoolLocked(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  if(subPoolLocked()) return;
  resetLogs();
  // Get parameters from dialog box
  FKParameters * param=static_cast<FKParameters *>(parameters());
  if(!param) return;
  param->setOutputFile(_d->outputFile());
  param->setExportAllFKGrids(false);
  double azimuth=averageAzimuth();
  // Prepare loop
  LinearFKPassiveLoop * loop=new LinearFKPassiveLoop;
  loop->setArray(&_array);
  loop->setLog(&_log);
  if( !loop->setParameters(param) ) {
    delete loop;
    return;
  }
  loop->setAzimuth(azimuth);
  connect(loop, SIGNAL(finished()), this, SLOT(finishPositive()));
  startLoop(loop, param, tr("Running forwards..."));
}
const char * ToolLinearFKPassive::toolName ( ) [protected, virtual]

Reimplemented from ToolFK.

{
  return "Linear FK Array analysis for passive sources";
}

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