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 
16 #ifndef vtkSLCReader_h
17 #define vtkSLCReader_h
18 
19 #include "vtkIOImageModule.h" // For export macro
20 #include "vtkImageReader2.h"
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
24 {
25 public:
26  static vtkSLCReader* New();
27  vtkTypeMacro(vtkSLCReader, vtkImageReader2);
28  void PrintSelf(ostream& os, vtkIndent indent) override;
29 
31 
34  vtkGetMacro(Error, int);
36 
40  int CanReadFile(VTK_FILEPATH const char* fname) override;
44  const char* GetFileExtensions() override { return ".slc"; }
45 
49  const char* GetDescriptiveName() override { return "SLC"; }
50 
51 protected:
53  ~vtkSLCReader() override;
54 
55  // Reads the file name and builds a vtkStructuredPoints dataset.
57 
59  vtkInformationVector* outputVector) override;
60 
61  // Decodes an array of eight bit run-length encoded data.
62  unsigned char* Decode8BitData(unsigned char* in_ptr, int size);
63  int Error;
64 
65 private:
66  vtkSLCReader(const vtkSLCReader&) = delete;
67  void operator=(const vtkSLCReader&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
general representation of visualization data
Definition: vtkDataObject.h:55
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read an SLC volume file.
Definition: vtkSLCReader.h:24
const char * GetFileExtensions() override
.slc
Definition: vtkSLCReader.h:44
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:49
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