VTK  9.4.20241218
vtkSLCReader.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
3
45#ifndef vtkSLCReader_h
46#define vtkSLCReader_h
47
48#include "vtkIOImageModule.h" // For export macro
49#include "vtkImageReader2.h"
50
51VTK_ABI_NAMESPACE_BEGIN
52class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
53{
54public:
55 static vtkSLCReader* New();
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
60
63 vtkGetMacro(Error, int);
65
69 int CanReadFile(VTK_FILEPATH const char* fname) override;
73 const char* GetFileExtensions() override { return ".slc"; }
74
78 const char* GetDescriptiveName() override { return "SLC"; }
79
80protected:
82 ~vtkSLCReader() override;
83
84 // Reads the file name and builds a vtkStructuredPoints dataset.
86
88 vtkInformationVector* outputVector) override;
89
90 // Decodes an array of eight bit run-length encoded data.
91 unsigned char* Decode8BitData(unsigned char* in_ptr, int size);
92 int Error;
93
94private:
95 vtkSLCReader(const vtkSLCReader&) = delete;
96 void operator=(const vtkSLCReader&) = delete;
97};
98
99VTK_ABI_NAMESPACE_END
100#endif
general representation of visualization data
Superclass of 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 an SLC volume file.
const char * GetFileExtensions() override
.slc
static vtkSLCReader * New()
~vtkSLCReader() override
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 CanReadFile(VTK_FILEPATH const char *fname) override
Is the given file an SLC file?
const char * GetDescriptiveName() override
SLC.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned char * Decode8BitData(unsigned char *in_ptr, int size)
void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
#define VTK_FILEPATH