36 #include <QPushButton>
38 #include <QVBoxLayout>
50 mPatientOrientationButton(new QPushButton(
"Patient Orientation")),
51 mInvertButton(new QCheckBox(
"Back face"))
53 QVBoxLayout* layout =
new QVBoxLayout(
this);
55 layout->addWidget(mInvertButton);
56 layout->addWidget(mPatientOrientationButton);
60 connect(mPatientOrientationButton, SIGNAL(clicked()),
this, SLOT(setPatientOrientationSlot()));
65 connect(mActiveToolProxy.get(), SIGNAL(toolVisible(
bool)),
this, SLOT(enableToolSampleButtonSlot()));
66 connect(mActiveToolProxy.get(), SIGNAL(activeToolChanged(
const QString&)),
this, SLOT(enableToolSampleButtonSlot()));
67 this->enableToolSampleButtonSlot();
77 "<h3>Set patient orientation using the navigation tool.</h3>"
78 "<p><b>Prerequisite:</b> Image registration.</p>"
79 "<p>Only orientation of the reference space is changed - data is not moved.</p>"
80 "Align the Polaris tool so that the tools tip points towards the patients feet and the "
81 "markers face the same way as the patients nose. Click the button. Verify that the "
82 "figure in the upper left corner of the 3D view is correcly aligned.</p>"
83 "<p><b>Tip:</b> If the patient is orientated with the nose down towards the table, try using <i>back face</i>.</p>"
87 void PatientOrientationWidget::globalConfigurationFileChangedSlot(QString key)
89 if (key ==
"giveManualToolPhysicalProperties")
90 this->enableToolSampleButtonSlot();
93 Transform3D PatientOrientationWidget::get_tMtm()
const
97 if (mInvertButton->isChecked())
109 void PatientOrientationWidget::setPatientOrientationSlot()
115 void PatientOrientationWidget::enableToolSampleButtonSlot()
118 bool enabled =
false;
120 tool->getVisible() &&
123 mPatientOrientationButton->setEnabled(enabled);
Transform3D createTransformRotateY(const double angle)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void valueChangedFor(QString key)
Settings * settings()
Shortcut for accessing the settings instance.
TrackingServicePtr trackingService
Transform3D createTransformRotateZ(const double angle)
RegistrationServicePtr registrationService
boost::shared_ptr< class Tool > ToolPtr