Computer Assisted Medical Intervention Tool Kit  version 5.2
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-2024 Univ. Grenoble Alpes, CNRS, Grenoble INP - UGA, 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 
64  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 
Input of the parameter to read a raw data file.
Definition: RawDataDialog.h:47
void init()
Initializes the dialog options.
Definition: RawDataDialog.cpp:53
double getOriginX()
Definition: RawDataDialog.cpp:227
double getVoxelSizeY()
Definition: RawDataDialog.cpp:202
~RawDataDialog() override
Destructor.
Definition: RawDataDialog.cpp:48
int getVoxelType()
Definition: RawDataDialog.cpp:99
virtual void voxelTypeChanged(int)
Definition: RawDataDialog.cpp:85
int getDimY()
Definition: RawDataDialog.cpp:147
int getDimZ()
Definition: RawDataDialog.cpp:159
RawDataDialog(QString filename)
Default Constructor.
Definition: RawDataDialog.cpp:40
double getOriginY()
Definition: RawDataDialog.cpp:239
camitk::ImageOrientationHelper::PossibleImageOrientations getOrientation()
Definition: RawDataDialog.cpp:285
QString getFilename()
Definition: RawDataDialog.cpp:277
double getOriginZ()
Definition: RawDataDialog.cpp:251
double getVoxelSizeZ()
Definition: RawDataDialog.cpp:214
int getHeaderSize()
Definition: RawDataDialog.cpp:265
double getVoxelSizeX()
Definition: RawDataDialog.cpp:190
bool isLowerLeftOrigin()
Definition: RawDataDialog.cpp:281
bool isBigEndian()
Definition: RawDataDialog.cpp:172
int getDimX()
Definition: RawDataDialog.cpp:135
int getNbScalarComponents()
Definition: RawDataDialog.cpp:177
This class manage raw images, i.e., images that are directly loaded from a file containing only the b...
Definition: RawImageComponent.h:48
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52