VTK  9.4.20241218
vtkNrrdReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright (c) Sandia Corporation
3// SPDX-License-Identifier: BSD-3-Clause
4
26#ifndef vtkNrrdReader_h
27#define vtkNrrdReader_h
28
29#include "vtkIOImageModule.h" // For export macro
30#include "vtkImageReader.h"
31
32VTK_ABI_NAMESPACE_BEGIN
33class vtkCharArray;
34
35class VTKIOIMAGE_EXPORT vtkNrrdReader : public vtkImageReader
36{
37public:
39 static vtkNrrdReader* New();
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
42 int CanReadFile(VTK_FILEPATH const char* filename) override;
43
44protected:
46 ~vtkNrrdReader() override;
47
49 vtkInformationVector* outputVector) override;
50
51 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
52 vtkInformationVector* outputVector) override;
53
54 int ReadHeaderInternal(vtkCharArray* headerBuffer);
55 virtual int ReadHeader();
56 virtual int ReadHeader(vtkCharArray* headerBuffer);
57
58 virtual int ReadDataAscii(vtkImageData* output);
59
60 template <typename T>
62 virtual int ReadDataGZip(vtkImageData* output);
63
65
66 enum
67 {
70 ENCODING_GZIP
71 };
72
74
75private:
76 vtkNrrdReader(const vtkNrrdReader&) = delete;
77 void operator=(const vtkNrrdReader&) = delete;
78};
79
80VTK_ABI_NAMESPACE_END
81#endif // vtkNrrdReader_h
dynamic, self-adjusting array of char
topologically and geometrically regular array of data
Superclass of transformable binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read nrrd files file system.
virtual int ReadDataAscii(vtkImageData *output)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStringArray * DataFiles
int ReadHeaderInternal(vtkCharArray *headerBuffer)
static vtkNrrdReader * New()
~vtkNrrdReader() override
int CanReadFile(VTK_FILEPATH const char *filename) override
int vtkNrrdReaderReadDataGZipTemplate(vtkImageData *output, T *outBuffer)
virtual int ReadDataGZip(vtkImageData *output)
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called in response to a REQUEST_DATA request from the executive.
virtual int ReadHeader(vtkCharArray *headerBuffer)
virtual int ReadHeader()
a vtkAbstractArray subclass for strings
#define VTK_FILEPATH