#include <RotateComponents.h>
Public Slots | |
| void | on_rEAxis_stateChanged (int) |
| void | on_rNAxis_stateChanged (int) |
| void | on_rZAxis_stateChanged (int) |
| void | updateAll () |
Public Member Functions | |
| RotateParameters | parameters () |
| RotateComponents (QWidget *parent=0, Qt::WFlags fl=0) | |
| RotateComponents::RotateComponents | ( | QWidget * | parent = 0, |
| Qt::WFlags | fl = 0 |
||
| ) |
Constructs a RotateComponents as a child of parent, with widget flags set to fl.
References TRACE.
| void RotateComponents::on_rEAxis_stateChanged | ( | int | ) | [slot] |
| void RotateComponents::on_rNAxis_stateChanged | ( | int | ) | [slot] |
| void RotateComponents::on_rZAxis_stateChanged | ( | int | ) | [slot] |
References GeopsyCore::RotateParameters::setAngleAroundEast(), GeopsyCore::RotateParameters::setAngleAroundNorth(), GeopsyCore::RotateParameters::setAngleAroundVertical(), GeopsyCore::RotateParameters::setAxes(), and TRACE.
Referenced by WaveformConsole::rotate().
{
TRACE;
RotateParameters param;
RotateParameters::Axes a=0;
if(rZAxis->isChecked()) {
a|=RotateParameters::Vertical;
param.setAngleAroundVertical(angZAxis->value());
}
if(rNAxis->isChecked()) {
a|=RotateParameters::North;
param.setAngleAroundNorth(angNAxis->value());
}
if(rEAxis->isChecked()) {
a|=RotateParameters::East;
param.setAngleAroundEast(angEAxis->value());
}
param.setAxes(a);
return param;
}
| void RotateComponents::updateAll | ( | ) | [slot] |
References on_rEAxis_stateChanged(), on_rNAxis_stateChanged(), on_rZAxis_stateChanged(), and TRACE.
Referenced by WaveformConsole::rotate().
{
TRACE;
on_rZAxis_stateChanged(0);
on_rNAxis_stateChanged(0);
on_rEAxis_stateChanged(0);
}