VTK
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 
25 #ifndef vtkSLCReader_h
26 #define vtkSLCReader_h
27 
28 #include "vtkIOImageModule.h" // For export macro
29 #include "vtkImageReader2.h"
30 
31 class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
32 {
33 public:
34  static vtkSLCReader *New();
36  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
37 
39 
42  vtkGetMacro(Error,int);
44 
48  int CanReadFile(const char* fname) VTK_OVERRIDE;
52  const char* GetFileExtensions() VTK_OVERRIDE
53  {
54  return ".slc";
55  }
56 
60  const char* GetDescriptiveName() VTK_OVERRIDE
61  {
62  return "SLC";
63  }
64 
65 protected:
66  vtkSLCReader();
67  ~vtkSLCReader() VTK_OVERRIDE;
68 
69  // Reads the file name and builds a vtkStructuredPoints dataset.
71 
73  vtkInformationVector** inputVector,
74  vtkInformationVector* outputVector) VTK_OVERRIDE;
75 
76  // Decodes an array of eight bit run-length encoded data.
77  unsigned char *Decode8BitData( unsigned char *in_ptr, int size );
78  int Error;
79 private:
80  vtkSLCReader(const vtkSLCReader&) VTK_DELETE_FUNCTION;
81  void operator=(const vtkSLCReader&) VTK_DELETE_FUNCTION;
82 };
83 
84 #endif
85 
86 
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo) override
This is a convenience method that is implemented in many subclasses instead of RequestData.
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
const char * GetFileExtensions() override
.slc
Definition: vtkSLCReader.h:52
a simple class to control print indentation
Definition: vtkIndent.h:33
const char * GetDescriptiveName() override
SLC.
Definition: vtkSLCReader.h:60
Superclass of binary file readers.
read an SLC volume file.
Definition: vtkSLCReader.h:31
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Subclasses can reimplement this method to collect information from their inputs and set information f...
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:58