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
37class VTKIOIMAGE_EXPORT vtkSLCReader : public vtkImageReader2
38{
39public:
40 static vtkSLCReader *New();
42 void PrintSelf(ostream& os, vtkIndent indent);
43
45
48 vtkSetStringMacro(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
79protected:
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;
93private:
94 vtkSLCReader(const vtkSLCReader&) VTK_DELETE_FUNCTION;
95 void operator=(const vtkSLCReader&) VTK_DELETE_FUNCTION;
96};
97
98#endif
99
100
general representation of visualization data
Definition: vtkDataObject.h:65
Superclass of binary file readers.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
read an SLC volume file.
Definition: vtkSLCReader.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
static vtkSLCReader * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Subclasses can reimplement this method to collect information from their inputs and set information f...
int CanReadFile(const char *fname)
Is the given file an SLC file?
virtual const char * GetDescriptiveName()
SLC.
Definition: vtkSLCReader.h:74
virtual const char * GetFileExtensions()
.slc
Definition: vtkSLCReader.h:66
virtual void ExecuteDataWithInformation(vtkDataObject *, vtkInformation *)
This is a convenience method that is implemented in many subclasses instead of RequestData.
unsigned char * Decode8BitData(unsigned char *in_ptr, int size)
@ size
Definition: vtkX3D.h:253
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.