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
55
int
CanReadFile
(
const
char
* fname);
56
// Description:
57
// .slc
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.
77
virtual
void
ExecuteData
(
vtkDataObject
*);
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
Generated on Wed Nov 21 2012 21:33:59 for VTK by
1.8.2