vtkgdcm
vtkGDCMThreadedImageReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: GDCM (Grassroots DICOM). A DICOM library
4 
5  Copyright (c) 2006-2011 Mathieu Malaterre
6  All rights reserved.
7  See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
38 #ifndef VTKGDCMTHREADEDIMAGEREADER_H
39 #define VTKGDCMTHREADEDIMAGEREADER_H
40 
41 #include "vtkgdcmModule.h"
42 #include "vtkGDCMImageReader.h"
43 #include "vtkVersion.h"
44 
45 class VTKGDCM_EXPORT vtkGDCMThreadedImageReader : public vtkGDCMImageReader
46 {
47 public:
50  virtual void PrintSelf(ostream& os, vtkIndent indent);
51 
53 
56  vtkSetMacro(Shift,double);
58 
60 
63  vtkSetMacro(Scale,double);
65 
67 
71  vtkSetMacro(UseShiftScale,int);
72  vtkGetMacro(UseShiftScale,int);
73  vtkBooleanMacro(UseShiftScale,int);
75 
76  // Within this class this is allowed to set the Number of Overlays from outside
77  //vtkSetMacro(NumberOfOverlays,int);
78 
79 protected:
82 
83 #if (VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )
84  int RequestInformation(vtkInformation *request,
85  vtkInformationVector **inputVector,
86  vtkInformationVector *outputVector);
87  int RequestData(vtkInformation *request,
88  vtkInformationVector **inputVector,
89  vtkInformationVector *outputVector);
90 #else /*(VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )*/
92  void ExecuteData(vtkDataObject *out);
93 #endif /*(VTK_MAJOR_VERSION >= 5) || ( VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 5 )*/
94 
95  void ReadFiles(unsigned int nfiles, const char *filenames[]);
97 
98 private:
99  vtkGDCMThreadedImageReader(const vtkGDCMThreadedImageReader&); // Not implemented.
100  void operator=(const vtkGDCMThreadedImageReader&); // Not implemented.
101 
102  int UseShiftScale;
103 };
104 
105 #endif
read DICOM Image files (Pixel Data)
read DICOM files with multiple threads
void ReadFiles(unsigned int nfiles, const char *filenames[])
void ExecuteData(vtkDataObject *out)
static vtkGDCMThreadedImageReader * New()
virtual void PrintSelf(ostream &os, vtkIndent indent)