12 #ifndef CXIMPORTDATATYPEWIDGET_H
13 #define CXIMPORTDATATYPEWIDGET_H
15 #include "org_custusx_core_filemanager_Export.h"
19 #include <QPushButton>
42 void prepareDataForImport();
45 virtual void showEvent(QShowEvent *event);
46 void pointMetricGroupSpaceChanged(
int index);
47 void updateImageType();
50 void createDataSpecificGui(
DataPtr data);
51 std::map<QString, QString> getParentCandidateList();
53 void updateSpaceComboBox(QComboBox *box, QString space);
54 void updateParentCandidatesComboBox();
58 void applyParentTransformImport();
59 void applyConversionLPS();
60 void applyConversionToUnsigned();
63 QString getInitialGuessForParentFrame();
64 int similatiryMeasure(QString current, QString candidate);
65 QStringList splitStringIntoSeparateParts(QString current);
66 int countEqualListElements(QStringList first, QStringList second);
67 bool excludeElement(QString element);
68 QString removeParenthesis(QString current);
70 void addPointMetricGroupsToTable();
72 bool isInputFileInNiftiFormat();
73 bool isSegmentation(QString filename);
77 std::vector<DataPtr> mData;
79 std::vector<DataPtr> &mParentCandidates;
81 std::map<QString, QComboBox *> mSpaceCBs;
82 std::map<QString, std::vector<DataPtr> > mPointMetricGroups;
84 QComboBox *mAnatomicalCoordinateSystems;
85 QComboBox *mShouldImportParentTransform;
86 QComboBox *mParentCandidatesCB;
87 QCheckBox *mShouldConvertDataToUnsigned;
89 QTableWidget* mTableWidget;
90 QStringList mTableHeader;
91 int mSelectedIndexInTable;
96 QWidget* mImageTypeCombo;
97 QWidget* mModalityCombo;
101 #endif // CXIMPORTDATATYPEWIDGET_H