Computer Assited Medical Intervention Tool Kit  version 5.0
RawDataDialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6  *
7  * Visit http://camitk.imag.fr for more information
8  *
9  * This file is part of CamiTK.
10  *
11  * CamiTK is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * CamiTK is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Lesser General Public License version 3 for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22  *
23  * $CAMITK_LICENCE_END$
24  ****************************************************************************/
25 
26 #ifndef RAWDATADIALOG_H
27 #define RAWDATADIALOG_H
28 
29 // -- Core image component stuff
30 #include "ui_RawDataDialog.h"
31 #include <ImageOrientationHelper.h>
32 
33 
34 // -- Core image component stuff classes
35 class RawImageComponent;
36 
37 // -- QT stuff
38 #include <QDialog>
39 
47 class RawDataDialog : public QDialog {
48  Q_OBJECT
49 
50 public:
52  RawDataDialog(QString filename);
54  ~RawDataDialog() override;
55 
57  void init();
58 
63  int getVoxelType();
65  int getDimX();
66  int getDimY();
67  int getDimZ();
68  bool isBigEndian();
70  double getVoxelSizeX();
71  double getVoxelSizeY();
72  double getVoxelSizeZ();
73  double getOriginX();
74  double getOriginY();
75  double getOriginZ();
76  int getHeaderSize();
77  bool isLowerLeftOrigin();
78  QString getFilename();
81 
82 
83 public slots :
84  virtual void voxelTypeChanged(int);
85 
86 private :
87  QString filename;
88 
89  // Qt model designed by QtDesigner (with qt4, nor more inheritance from the ui)
90  Ui::RawDataDialog ui;
91 
92 } ;
93 #endif // RAWDATADIALOG_H
94 
95 
RawImageComponent
This class manage raw images, i.e., images that are directly loaded from a file containing only the b...
Definition: RawImageComponent.h:48
RawDataDialog::isBigEndian
bool isBigEndian()
Definition: RawDataDialog.cpp:172
RawDataDialog::isLowerLeftOrigin
bool isLowerLeftOrigin()
Definition: RawDataDialog.cpp:281
RawDataDialog
Input of the parameter to read a raw data file.
Definition: RawDataDialog.h:47
RawDataDialog::ui
Ui::RawDataDialog ui
Definition: RawDataDialog.h:90
RawDataDialog::getOriginY
double getOriginY()
Definition: RawDataDialog.cpp:239
RawDataDialog::init
void init()
Initializes the dialog options.
Definition: RawDataDialog.cpp:53
RawDataDialog::getHeaderSize
int getHeaderSize()
Definition: RawDataDialog.cpp:265
RawImageComponent.h
RawDataDialog::getVoxelSizeY
double getVoxelSizeY()
Definition: RawDataDialog.cpp:202
RawDataDialog::getNbScalarComponents
int getNbScalarComponents()
Definition: RawDataDialog.cpp:177
RawDataDialog::getOriginX
double getOriginX()
Definition: RawDataDialog.cpp:227
RawDataDialog::RawDataDialog
RawDataDialog(QString filename)
Default Constructor.
Definition: RawDataDialog.cpp:40
RawDataDialog::getVoxelSizeX
double getVoxelSizeX()
Definition: RawDataDialog.cpp:190
RawDataDialog.h
RawDataDialog::filename
QString filename
Definition: RawDataDialog.h:87
RawDataDialog::getDimX
int getDimX()
Definition: RawDataDialog.cpp:135
RawDataDialog::getVoxelType
int getVoxelType()
Definition: RawDataDialog.cpp:99
RawDataDialog::~RawDataDialog
~RawDataDialog() override
Destructor.
Definition: RawDataDialog.cpp:48
RawDataDialog::getDimZ
int getDimZ()
Definition: RawDataDialog.cpp:159
ImageOrientationHelper.h
RawDataDialog::getVoxelSizeZ
double getVoxelSizeZ()
Definition: RawDataDialog.cpp:214
RawDataDialog::getDimY
int getDimY()
Definition: RawDataDialog.cpp:147
RawDataDialog::voxelTypeChanged
virtual void voxelTypeChanged(int)
Definition: RawDataDialog.cpp:85
RawDataDialog::getOriginZ
double getOriginZ()
Definition: RawDataDialog.cpp:251
RawDataDialog::getOrientation
camitk::ImageOrientationHelper::PossibleImageOrientations getOrientation()
Definition: RawDataDialog.cpp:285
camitk::ImageOrientationHelper::PossibleImageOrientations
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
RawDataDialog::getFilename
QString getFilename()
Definition: RawDataDialog.cpp:277
camitk::ImageOrientationHelper::getPossibleImageOrientations
static const QStringList getPossibleImageOrientations()
Returns the enumeration type PossibleImageOrientations in the format of a QStringList.
Definition: ImageOrientationHelper.cpp:13