VTK  9.4.20241218
vtkVolumeReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
33#ifndef vtkVolumeReader_h
34#define vtkVolumeReader_h
35
36#include "vtkIOImageModule.h" // For export macro
37#include "vtkImageAlgorithm.h"
38
39VTK_ABI_NAMESPACE_BEGIN
40class VTKIOIMAGE_EXPORT vtkVolumeReader : public vtkImageAlgorithm
41{
42public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
53
55
58 vtkSetFilePathMacro(FilePattern);
59 vtkGetFilePathMacro(FilePattern);
61
63
66 vtkSetVector2Macro(ImageRange, int);
67 vtkGetVectorMacro(ImageRange, int, 2);
69
71
74 vtkSetVector3Macro(DataSpacing, double);
75 vtkGetVectorMacro(DataSpacing, double, 3);
77
79
82 vtkSetVector3Macro(DataOrigin, double);
83 vtkGetVectorMacro(DataOrigin, double, 3);
85
89 virtual vtkImageData* GetImage(int ImageNumber) = 0;
90
91protected:
93 ~vtkVolumeReader() override;
94
97 int ImageRange[2];
98 double DataSpacing[3];
99 double DataOrigin[3];
100
101private:
102 vtkVolumeReader(const vtkVolumeReader&) = delete;
103 void operator=(const vtkVolumeReader&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#endif
Generic algorithm superclass for image algs.
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
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).