15 #include <QFileDialog> 16 #include <QPushButton> 17 #include <QVBoxLayout> 22 #include <vtkImageData.h> 37 mPatientModelService(patientModelService)
39 this->setAttribute(Qt::WA_DeleteOnClose);
41 QVBoxLayout* layout =
new QVBoxLayout(
this);
42 this->setWindowTitle(
"Export Patient Data");
44 mNiftiFormatCheckBox =
new QCheckBox(
"Use RAS NIfTI-1/ITK-Snap axis definition",
this);
45 mNiftiFormatCheckBox->setToolTip(
"" 46 "Use RAS (X=Left->Right Y=Posterior->Anterior Z=Inferior->Superior), as in ITK-Snap.\n" 47 "This is different from LPS (DICOM).");
48 mNiftiFormatCheckBox->setChecked(
true);
49 mNiftiFormatCheckBox->setEnabled(
true);
51 layout->addWidget(mNiftiFormatCheckBox);
53 QHBoxLayout* buttons =
new QHBoxLayout;
54 layout->addLayout(buttons);
55 mOkButton =
new QPushButton(
"OK",
this);
56 buttons->addStretch();
57 buttons->addWidget(mOkButton);
58 connect(mOkButton, SIGNAL(clicked()),
this, SLOT(accept()));
59 connect(
this, SIGNAL(accepted()),
this, SLOT(acceptedSlot()));
60 mOkButton->setDefault(
true);
61 mOkButton->setFocus();
70 PATIENT_COORDINATE_SYSTEM ExportDataDialog::getExternalSpace()
72 return mNiftiFormatCheckBox->isChecked() ?
pcsRAS :
pcsLPS;
75 void ExportDataDialog::acceptedSlot()
77 mPatientModelService->exportPatient(this->getExternalSpace());
pcsRAS
Right-Anterior-Superior, used by Slicer3D, ITK-Snap, nifti, MINC.
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
virtual ~ExportDataDialog()
pcsLPS
Left-Posterior-Superior, used internally by CustusX, also DICOM, ITK.
ExportDataDialog(PatientModelServicePtr patientModelService, QWidget *parent=NULL)
Namespace for all CustusX production code.