VTK  9.6.20260202
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
46#ifndef vtkSLCReader_h
47#define vtkSLCReader_h
48
49#include "vtkIOImageModule.h" // For export macro
50#include "vtkImageReader2.h"
51
52VTK_ABI_NAMESPACE_BEGIN
53class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
54{
55public:
56 static vtkSLCReader* New();
58 void PrintSelf(ostream& os, vtkIndent indent) override;
59
61
64 vtkGetMacro(Error, int);
66
71 int CanReadFile(VTK_FILEPATH const char* fname) override;
75 const char* GetFileExtensions() override { return ".slc"; }
76
80 const char* GetDescriptiveName() override { return "SLC"; }
81
82protected:
84 ~vtkSLCReader() override;
85
86 // Reads the file name and builds a vtkStructuredPoints dataset.
88
90 vtkInformationVector* outputVector) override;
91
92 // Decodes an array of eight bit run-length encoded data.
93 unsigned char* Decode8BitData(unsigned char* in_ptr, int size);
94 int Error;
95
96private:
97 vtkSLCReader(const vtkSLCReader&) = delete;
98 void operator=(const vtkSLCReader&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#endif
general representation of visualization data
virtual int CanReadFile(const char *fname)
Return non zero if the reader can read the given file name.
vtkImageReader2()
Return a descriptive name for the file format that might be useful in a GUI.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
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...
const char * GetDescriptiveName() override
SLC.
int CanReadFile(const char *fname) override
Is the given file an SLC file?
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