VTK  9.3.0
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 
25 #ifndef vtkSLCReader_h
26 #define vtkSLCReader_h
27 
28 #include "vtkIOImageModule.h" // For export macro
29 #include "vtkImageReader2.h"
30 
31 VTK_ABI_NAMESPACE_BEGIN
32 class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
33 {
34 public:
35  static vtkSLCReader* New();
36  vtkTypeMacro(vtkSLCReader, vtkImageReader2);
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkGetMacro(Error, int);
45 
49  int CanReadFile(VTK_FILEPATH const char* fname) override;
53  const char* GetFileExtensions() override { return ".slc"; }
54 
58  const char* GetDescriptiveName() override { return "SLC"; }
59 
60 protected:
62  ~vtkSLCReader() override;
63 
64  // Reads the file name and builds a vtkStructuredPoints dataset.
66 
68  vtkInformationVector* outputVector) override;
69 
70  // Decodes an array of eight bit run-length encoded data.
71  unsigned char* Decode8BitData(unsigned char* in_ptr, int size);
72  int Error;
73 
74 private:
75  vtkSLCReader(const vtkSLCReader&) = delete;
76  void operator=(const vtkSLCReader&) = delete;
77 };
78 
79 VTK_ABI_NAMESPACE_END
80 #endif
general representation of visualization data
Definition: vtkDataObject.h:64
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read an SLC volume file.
Definition: vtkSLCReader.h:33
const char * GetFileExtensions() override
.slc
Definition: vtkSLCReader.h:53
unsigned char * Decode8BitData(unsigned char *in_ptr, int size)
~vtkSLCReader() override
static vtkSLCReader * New()
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.
Definition: vtkSLCReader.h:58
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
@ size
Definition: vtkX3D.h:253
#define VTK_FILEPATH