VTK  9.2.6
vtkSLCReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkSLCReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
37#ifndef vtkSLCReader_h
38#define vtkSLCReader_h
39
40#include "vtkIOImageModule.h" // For export macro
41#include "vtkImageReader2.h"
42
43class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
44{
45public:
46 static vtkSLCReader* New();
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkGetMacro(Error, int);
56
60 int CanReadFile(VTK_FILEPATH const char* fname) override;
64 const char* GetFileExtensions() override { return ".slc"; }
65
69 const char* GetDescriptiveName() override { return "SLC"; }
70
71protected:
73 ~vtkSLCReader() override;
74
75 // Reads the file name and builds a vtkStructuredPoints dataset.
77
79 vtkInformationVector* outputVector) override;
80
81 // Decodes an array of eight bit run-length encoded data.
82 unsigned char* Decode8BitData(unsigned char* in_ptr, int size);
83 int Error;
84
85private:
86 vtkSLCReader(const vtkSLCReader&) = delete;
87 void operator=(const vtkSLCReader&) = delete;
88};
89
90#endif
general representation of visualization data
Superclass of binary file readers.
a simple class to control print indentation
Definition vtkIndent.h:49
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