VTK
vtkVolumeReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumeReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
45 #ifndef vtkVolumeReader_h
46 #define vtkVolumeReader_h
47 
48 #include "vtkIOImageModule.h" // For export macro
49 #include "vtkImageAlgorithm.h"
50 
51 class VTKIOIMAGE_EXPORT vtkVolumeReader : public vtkImageAlgorithm
52 {
53 public:
55  void PrintSelf(ostream& os, vtkIndent indent) override;
56 
58 
61  vtkSetStringMacro(FilePrefix);
62  vtkGetStringMacro(FilePrefix);
64 
66 
69  vtkSetStringMacro(FilePattern);
70  vtkGetStringMacro(FilePattern);
72 
74 
77  vtkSetVector2Macro(ImageRange,int);
78  vtkGetVectorMacro(ImageRange,int,2);
80 
82 
85  vtkSetVector3Macro(DataSpacing,double);
86  vtkGetVectorMacro(DataSpacing,double,3);
88 
90 
93  vtkSetVector3Macro(DataOrigin,double);
94  vtkGetVectorMacro(DataOrigin,double,3);
96 
100  virtual vtkImageData *GetImage(int ImageNumber) = 0;
101 
102 protected:
103  vtkVolumeReader();
104  ~vtkVolumeReader() override;
105 
106  char *FilePrefix;
107  char *FilePattern;
108  int ImageRange[2];
109  double DataSpacing[3];
110  double DataOrigin[3];
111 private:
112  vtkVolumeReader(const vtkVolumeReader&) = delete;
113  void operator=(const vtkVolumeReader&) = delete;
114 };
115 
116 #endif
117 
118 
read image files
a simple class to control print indentation
Definition: vtkIndent.h:39
topologically and geometrically regular array of data
Definition: vtkImageData.h:45
Generic algorithm superclass for image algs.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.