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 
30 #ifndef vtkSLCReader_h
31 #define vtkSLCReader_h
32 
33 #include "vtkIOImageModule.h" // For export macro
34 #include "vtkImageReader2.h"
35 
37 {
38 public:
39  static vtkSLCReader *New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  vtkSetStringMacro(FileName);
46  vtkGetStringMacro(FileName);
48 
50 
51  vtkGetMacro(Error,int);
53 
55  int CanReadFile(const char* fname);
57 
58  virtual const char* GetFileExtensions()
59  {
60  return ".slc";
61  }
63 
65 
66  virtual const char* GetDescriptiveName()
67  {
68  return "SLC";
69  }
71 
72 protected:
73  vtkSLCReader();
74  ~vtkSLCReader();
75 
76  // Reads the file name and builds a vtkStructuredPoints dataset.
78 
79  virtual int RequestInformation(vtkInformation* request,
80  vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector);
82 
83  // Decodes an array of eight bit run-length encoded data.
84  unsigned char *Decode8BitData( unsigned char *in_ptr, int size );
85  int Error;
86 private:
87  vtkSLCReader(const vtkSLCReader&); // Not implemented.
88  void operator=(const vtkSLCReader&); // Not implemented.
89 };
90 
91 #endif
92 
93 
static vtkImageReader2 * New()
Store vtkAlgorithm input/output information.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual const char * GetFileExtensions()
Definition: vtkSLCReader.h:58
virtual int CanReadFile(const char *vtkNotUsed(fname))
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual const char * GetDescriptiveName()
Definition: vtkSLCReader.h:66
Superclass of binary file readers.
read an SLC volume file.
Definition: vtkSLCReader.h:36
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
#define VTKIOIMAGE_EXPORT
virtual void ExecuteDataWithInformation(vtkDataObject *data, vtkInformation *outInfo)
general representation of visualization data
Definition: vtkDataObject.h:64