VTK  9.6.20260202
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
25
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
43 int CanReadFile(VTK_FILEPATH const char* filename) override;
44
45protected:
47 ~vtkNrrdReader() override;
48
50 vtkInformationVector* outputVector) override;
51
52 int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
53 vtkInformationVector* outputVector) override;
54
55 int ReadHeaderInternal(vtkCharArray* headerBuffer);
56 virtual int ReadHeader();
57 virtual int ReadHeader(vtkCharArray* headerBuffer);
58
59 virtual int ReadDataAscii(vtkImageData* output);
60
61 template <typename T>
63 virtual int ReadDataGZip(vtkImageData* output);
64
66
67 enum
68 {
72 };
73
75
76private:
77 vtkNrrdReader(const vtkNrrdReader&) = delete;
78 void operator=(const vtkNrrdReader&) = delete;
79};
80
81VTK_ABI_NAMESPACE_END
82#endif // vtkNrrdReader_h
dynamic, self-adjusting array of char
topologically and geometrically regular array of data
int CanReadFile(const char *) override
vtkImageReader itself can read raw binary files.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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(const char *filename) override
vtkImageReader itself can read raw binary files.
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