Computer Assited Medical Intervention Tool Kit  version 4.0
DicomTreeSerieComponent.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * $CAMITK_LICENCE_BEGIN$
3  *
4  * CamiTK - Computer Assisted Medical Intervention ToolKit
5  * (c) 2001-2016 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 DICOMTREESERIECOMPONENT_H
27 #define DICOMTREESERIECOMPONENT_H
28 
29 // CamiTK includes
30 #include <ImageComponent.h>
31 class DicomStudyComponent;
32 namespace camitk {
33 class ImageOrientationHelper;
34 }
35 
36 // Qt includes
37 #include <QObject>
38 
39 // GDCM includes
40 class vtkGDCMImageReader;
41 
59 
60  Q_OBJECT
61 
62 public:
68  DicomTreeSerieComponent(const std::vector < std::string > & fileNames);
69 
71  virtual ~DicomTreeSerieComponent();
72 
73 private:
74 
80  vtkGDCMImageReader* imageReader;
81 
87  void updateLUT();
88 
94  camitk::ImageOrientationHelper::PossibleImageOrientations readDirectCosinesAngle(const std::vector< std::string > & fileNames) const;
95 
101  double roundCosine(const double & value) const;
102 
108  vtkSmartPointer<vtkImageData> translate(vtkSmartPointer<vtkImageData> imageData, double x, double y, double z);
109 
110 
111 };
112 
113 #endif // DICOMTREESERIECOMPONENT_H
114 
Definition: Action.cpp:40
vtkGDCMImageReader * imageReader
The image reader using GDCM that allows to read DICOM image as vtkImageData.
Definition: DicomTreeSerieComponent.h:80
The manager of the Image Volume data.
Definition: ImageComponent.h:69
PossibleImageOrientations
For each axis (x, y or z), 6 possibilities:
Definition: ImageOrientationHelper.h:52
This component allows you to read DICOM images files of a single SERIES of a given STUDY...
Definition: DicomTreeSerieComponent.h:58