Public Member Functions
ArrayPlugin Class Reference

#include <ArrayPlugin.h>

Inheritance diagram for ArrayPlugin:
GeopsyGui::GeopsyGuiInterface GeopsyCore::GeopsyCoreInterface

List of all members.

Public Member Functions

virtual ToolBasecreateTool (int id, QWidget *wsParent) const
virtual void createToolActions (QObject *toolFactory)
virtual const char * interfaceVersion () const
virtual void setHelp (ApplicationHelp *h)
virtual QString tag () const
virtual QString title () const

Member Function Documentation

ToolBase * ArrayPlugin::createTool ( int  id,
QWidget *  wsParent 
) const [virtual]

Implements GeopsyGui::GeopsyGuiInterface.

References TRACE.

{
  TRACE;
  switch (id) {
  case 0:
    return new ToolFK(wsParent);
  case 1:
    return new ToolHRFK(wsParent);
  case 2:
    return new ToolSPAC(wsParent);
  case 3:
    return new ToolLinearFKActive(wsParent);
  case 4:
    return new ToolLinearFKPassive(wsParent);
  default:
    return 0;
  }
}
void ArrayPlugin::createToolActions ( QObject *  toolFactory) [virtual]

Implements GeopsyGui::GeopsyGuiInterface.

References GeopsyGui::GeopsyGuiInterface::addAction(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  QAction * a;

  a=new QAction(toolFactory);
  a->setText(tr( "F-K" ));
  a->setIcon(QIcon( ":/images/fk-22x22.png" ));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);

  a=new QAction(toolFactory);
  a->setText(tr( "High resolution F-K" ));
  a->setIcon(QIcon( ":/images/hrfk-22x22.png" ));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);

  a=new QAction(toolFactory);
  a->setText(tr( "SPAC" ));
  a->setIcon(QIcon( ":/images/spac-22x22.png" ));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);

  a=new QAction(toolFactory);
  a->setText(tr( "Linear F-K for active experiments" ));
  a->setIcon(QIcon( ":/images/linearfkactive-22x22.png" ));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);

  a=new QAction(toolFactory);
  a->setText(tr( "Linear F-K for passive experiments" ));
  a->setIcon(QIcon( ":/images/linearfkpassive-22x22.png" ));
  connect(a, SIGNAL(triggered()), toolFactory, SLOT(showTool()) );
  addAction(a);
}
virtual const char* ArrayPlugin::interfaceVersion ( ) const [inline, virtual]

Returns the geopsycore version of the plugin (at compile time)

Implements GeopsyCore::GeopsyCoreInterface.

{return GEOPSYCORE_VERSION;}
void ArrayPlugin::setHelp ( ApplicationHelp h) [virtual]

Reimplemented from GeopsyGui::GeopsyGuiInterface.

References QGpCoreTools::ApplicationHelp::addExample(), QGpCoreTools::ApplicationHelp::addGroup(), QGpCoreTools::ApplicationHelp::addOption(), tag(), QGpCoreTools::tr(), and TRACE.

{
  TRACE;
  h->addGroup(tr("FK (tag=%1, slot=0)").arg(tag()), "fk" );
  h->addOption("-param <FILE.log>","Set processing parameters as specified in FILE.log");
  h->addOption("-export-grids","Export all FK grids for all frequency bands and time windows to files fkgrid_fxxx_twxxx (be careful, "
               "need a lot of disk space)");
  h->addOption("-f","Does not ask if .max file already exists.");

  h->addGroup(tr("High resolution FK (tag=%1, slot=1)").arg(tag()), "hrfk" );
  h->addOption("-param <FILE.log>","Set processing parameters as specified in FILE.log");
  h->addOption("-export-grids","Export all FK grids for all frequency bands and time windows to files fkgrid_fxxx_twxxx (be careful, "
               "need a lot of disk space)");
  h->addOption("-f","Does not ask if .max file already exists.");

  h->addGroup(tr("SPAC (tag=%1, slot=2)").arg(tag()), "spac" );
  h->addOption("-param <FILE.log>","Set processing parameters as specified in FILE.log");
  h->addOption("-rings <FILE.rings>","Load ring file FILE.rings (mandatory option)");

  h->addGroup(tr("Linear FK Active (tag=%1, slot=3)").arg(tag()), "linearfkactive" );
  h->addOption("-param <FILE.log>","Set processing parameters as specified in FILE.log");

  h->addGroup(tr("Linear FK Passive (tag=%1, slot=4)").arg(tag()), "linearfkpassive" );
  h->addOption("-param <FILE.log>","Set processing parameters as specified in FILE.log");

  h->addExample( "geopsy -db /home/mwathele/M2/database.gpy -- -tool geopsyarray -slot 0 -group "
                 "\"/333 sources/Array C/Vertical\" -- -param tmp.log",
                 "Open a database and start FK processing on group of signals named \"/333 sources/Array C/Vertical\". "
                 "Parameters are defined by \"tmp.log\" (format? see log file from a previous run).");
}
virtual QString ArrayPlugin::tag ( ) const [inline, virtual]

Implements GeopsyCore::GeopsyCoreInterface.

Referenced by setHelp().

{return "geopsyarray";}
virtual QString ArrayPlugin::title ( ) const [inline, virtual]

Implements GeopsyCore::GeopsyCoreInterface.

References QGpCoreTools::tr().

{return tr("Array analysis: F-K and SPAC");}

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