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 
31 #ifndef vtkSLCReader_h
32 #define vtkSLCReader_h
33 
34 #include "vtkIOImageModule.h" // For export macro
35 #include "vtkImageReader2.h"
36 
37 class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
38 {
39 public:
40  static vtkSLCReader *New();
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
48  vtkSetStringMacro(FileName);
49  vtkGetStringMacro(FileName);
51 
53 
56  vtkGetMacro(Error,int);
58 
62  int CanReadFile(const char* fname);
66  virtual const char* GetFileExtensions()
67  {
68  return ".slc";
69  }
70 
74  virtual const char* GetDescriptiveName()
75  {
76  return "SLC";
77  }
78 
79 protected:
80  vtkSLCReader();
81  ~vtkSLCReader();
82 
83  // Reads the file name and builds a vtkStructuredPoints dataset.
85 
86  virtual int RequestInformation(vtkInformation* request,
87  vtkInformationVector** inputVector,
88  vtkInformationVector* outputVector);
89 
90  // Decodes an array of eight bit run-length encoded data.
91  unsigned char *Decode8BitData( unsigned char *in_ptr, int size );
92  int Error;
93 private:
94  vtkSLCReader(const vtkSLCReader&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkSLCReader&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
99 
100 
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
virtual const char * GetFileExtensions()
.slc
Definition: vtkSLCReader.h:66
virtual int CanReadFile(const char *vtkNotUsed(fname))
Return non zero if the reader can read the given file name.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual const char * GetDescriptiveName()
SLC.
Definition: vtkSLCReader.h:74
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass of binary file readers.
read an SLC volume file.
Definition: vtkSLCReader.h:37
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
Store zero or more vtkInformation instances.
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
This is a convenience method that is implemented in many subclasses instead of RequestData.
general representation of visualization data
Definition: vtkDataObject.h:64