Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxImportDataDialog.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXIMPORTDATADIALOG_H_
13 #define CXIMPORTDATADIALOG_H_
14 
15 #include "cxGuiExport.h"
16 
17 #include <QDialog>
18 #include "cxDataInterface.h"
19 class QPushButton;
20 class QLabel;
21 class QCheckBox;
22 
23 namespace cx
24 {
34 class cxGui_EXPORT ImportDataDialog : public QDialog
35 {
36  Q_OBJECT
37 public:
38  ImportDataDialog(PatientModelServicePtr patientModelService, ViewServicePtr viewService, QString filename, QWidget* parent=NULL);
39  virtual ~ImportDataDialog();
40 
41 public:
42  void showEvent(QShowEvent* event);
43 private slots:
44  void updateImportTransformButton();
45  void importDataSlot();
46  void acceptedSlot();
47  void finishedSlot();
48 private:
49  void setInitialGuessForParentFrame();
50  DataPtr mData;
51  QString mFilename;
52  QLabel* mUidLabel;
53  QLabel* mNameLabel;
54  QLabel* mErrorLabel;
55  StringPropertySetParentFramePtr mParentFrameAdapter;
56  StringPropertyDataModalityPtr mModalityAdapter;
57  StringPropertyImageTypePtr mImageTypeAdapter;
58  QWidget* mParentFrameCombo;
59  QWidget* mImageTypeCombo;
60  QWidget* mModalityCombo;
61  QPushButton* mOkButton;
62  QCheckBox* mNiftiFormatCheckBox;
63  QCheckBox* mTransformFromParentFrameCheckBox;
64  QCheckBox* mConvertToUnsignedCheckBox;
65  PatientModelServicePtr mPatientModelService;
66  ViewServicePtr mViewService;
67 
68  void convertFromNifti1Coordinates();
69  void importParentTransform();
70  void convertToUnsigned();
71 };
72 }//namespace cx
73 
74 #endif /* CXIMPORTDATADIALOG_H_ */
boost::shared_ptr< class StringPropertyImageType > StringPropertyImageTypePtr
boost::shared_ptr< class ViewService > ViewServicePtr
boost::shared_ptr< class StringPropertySetParentFrame > StringPropertySetParentFramePtr
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
boost::shared_ptr< class StringPropertyDataModality > StringPropertyDataModalityPtr
Namespace for all CustusX production code.