VTK  9.1.0
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
51class VTKIOIMAGE_EXPORT vtkVolumeReader : public vtkImageAlgorithm
52{
53public:
55 void PrintSelf(ostream& os, vtkIndent indent) override;
56
58
64
66
69 vtkSetFilePathMacro(FilePattern);
70 vtkGetFilePathMacro(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
102protected:
105
108 int ImageRange[2];
109 double DataSpacing[3];
110 double DataOrigin[3];
111
112private:
113 vtkVolumeReader(const vtkVolumeReader&) = delete;
114 void operator=(const vtkVolumeReader&) = delete;
115};
116
117#endif
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
Definition: vtkImageData.h:157
a simple class to control print indentation
Definition: vtkIndent.h:113
read image files
vtkSetFilePathMacro(FilePattern)
The snprintf format used to build filename from FilePrefix and number.
virtual vtkImageData * GetImage(int ImageNumber)=0
Other objects make use of this method.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkVolumeReader() override
vtkGetFilePathMacro(FilePrefix)
Specify file prefix for the image file(s).
vtkGetFilePathMacro(FilePattern)
The snprintf format used to build filename from FilePrefix and number.
vtkSetFilePathMacro(FilePrefix)
Specify file prefix for the image file(s).