VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
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 "
vtkImageReader2.h
"
34
35
class
VTK_IO_EXPORT
vtkSLCReader
:
public
vtkImageReader2
36
{
37
public
:
38
static
vtkSLCReader
*
New
();
39
vtkTypeMacro(
vtkSLCReader
,
vtkImageReader2
);
40
void
PrintSelf
(ostream& os,
vtkIndent
indent);
41
43
44
vtkSetStringMacro(FileName);
45
vtkGetStringMacro(FileName);
47
49
50
vtkGetMacro(Error,
int
);
52
54
int
CanReadFile
(
const
char
* fname);
56
57
virtual
const
char
*
GetFileExtensions
()
58
{
59
return
".slc"
;
60
}
62
64
65
virtual
const
char
*
GetDescriptiveName
()
66
{
67
return
"SLC"
;
68
}
70
71
protected
:
72
vtkSLCReader
();
73
~
vtkSLCReader
();
74
75
// Reads the file name and builds a vtkStructuredPoints dataset.
76
virtual
void
ExecuteData
(
vtkDataObject
*);
77
78
virtual
int
RequestInformation
(
vtkInformation
* request,
79
vtkInformationVector
** inputVector,
80
vtkInformationVector
* outputVector);
81
82
// Decodes an array of eight bit run-length encoded data.
83
unsigned
char
*Decode8BitData(
unsigned
char
*in_ptr,
int
size
);
84
int
Error
;
85
private
:
86
vtkSLCReader
(
const
vtkSLCReader
&);
// Not implemented.
87
void
operator=(
const
vtkSLCReader
&);
// Not implemented.
88
};
89
90
#endif
91
92
Generated on Tue Jan 8 2013 05:45:36 for VTK by
1.8.1.2