Public Member Functions | Protected Member Functions | Protected Attributes
ToolPtMotion Class Reference

#include <ToolPtMotion.h>

Inheritance diagram for ToolPtMotion:
GeopsyGui::ToolBase

List of all members.

Public Member Functions

 ToolPtMotion (QWidget *parent)

Protected Member Functions

virtual bool initStations (SubSignalPool *subPool)
virtual void updateAllFields ()

Protected Attributes

ToolPtMotiond_d

Constructor & Destructor Documentation

ToolPtMotion::ToolPtMotion ( QWidget *  parent)

References _d, GeopsyGui::ToolBase::setWindowTitle(), QGpCoreTools::tr(), and TRACE.

                                           :
  ToolBase(parent, 1)
{
  TRACE;
  QVBoxLayout * baseLayout=new QVBoxLayout(this);
  _d=new ToolPtMotiond(this);
  baseLayout->addWidget(_d);
  setWindowTitle(tr("Particle motion toolbox"));
  setObjectName("ToolPtMotion");
}

Member Function Documentation

bool ToolPtMotion::initStations ( SubSignalPool subPool) [protected, virtual]

Reimplemented from GeopsyGui::ToolBase.

References GeopsyGui::ToolBase::_childrenList, _d, _ptMotionRes, GeopsyGui::ToolBase::_subPool, GeopsyCore::SubSignalPool::associate3Components(), geopsyGui, GeopsyGui::ToolBase::pickLayer(), and TRACE.

{
  TRACE;
  if(!subPool->associate3Components()) return false;
  _subPool=subPool;
  _d->timeLimits->setPicks(_subPool);
  _childrenList[0]=qobject_cast<QWidget *>(new PtMotionResults);
  _ptMotionRes->createObjects(subPool);
  if(pickLayer()) {
    connect(pickLayer(), SIGNAL(pickChanged(Signal *)), _d->timeLimits, SLOT(setPicks(Signal *)));
  }
  geopsyGui->addWindow(_ptMotionRes);
  geopsyGui->showWindow(_ptMotionRes);

  connect(_d->updateAxisBut, SIGNAL(stateChanged(int)), this, SLOT(setLimits()));
  connect(_d->vertical,SIGNAL(toggled(bool)), this,SLOT(updateSignals()));
  connect(_d->azimuth,SIGNAL(valueChanged(double)), this,SLOT(updateSignals()));
  connect(_d->doFilterBut,SIGNAL(stateChanged(int)), this,SLOT(updateSignals()));
  connect(_d->filterWidget,SIGNAL(parametersChanged()), this,SLOT(updateSignals()));
  connect(_d->timeLimits,SIGNAL(parametersChanged()), this,SLOT(updateSignals()));

  updateSignals();
  _ptMotionRes->setLimits();
  return true;
}
void ToolPtMotion::updateAllFields ( ) [protected, virtual]

Reimplemented from GeopsyGui::ToolBase.

References _d, ToolPtMotiond::on_doFilterBut_stateChanged(), ToolPtMotiond::on_vertical_toggled(), and TRACE.

{
  TRACE;
  _d->on_doFilterBut_stateChanged();
  _d->filterWidget->updateAllFields();
  _d->on_vertical_toggled();
  _d->timeLimits->updateAllFields();
  updateSignals();
}

Member Data Documentation


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