VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkGenericDataObjectReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkGenericDataObjectReader.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
=========================================================================*/
37
#ifndef __vtkGenericDataObjectReader_h
38
#define __vtkGenericDataObjectReader_h
39
40
#include "
vtkDataReader.h
"
41
42
class
vtkDataObject
;
43
class
vtkGraph
;
44
class
vtkPolyData
;
45
class
vtkRectilinearGrid
;
46
class
vtkStructuredGrid
;
47
class
vtkStructuredPoints
;
48
class
vtkTable
;
49
class
vtkTree
;
50
class
vtkUnstructuredGrid
;
51
52
class
VTK_IO_EXPORT
vtkGenericDataObjectReader
:
public
vtkDataReader
53
{
54
public
:
55
static
vtkGenericDataObjectReader
*
New
();
56
vtkTypeMacro(
vtkGenericDataObjectReader
,
vtkDataReader
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent);
58
60
61
vtkDataObject
*GetOutput();
62
vtkDataObject
*GetOutput(
int
idx);
64
66
71
vtkGraph
*GetGraphOutput();
72
vtkPolyData
*GetPolyDataOutput();
73
vtkRectilinearGrid
*GetRectilinearGridOutput();
74
vtkStructuredGrid
*GetStructuredGridOutput();
75
vtkStructuredPoints
*GetStructuredPointsOutput();
76
vtkTable
*GetTableOutput();
77
vtkTree
*GetTreeOutput();
78
vtkUnstructuredGrid
*GetUnstructuredGridOutput();
80
83
virtual
int
ReadOutputType();
84
86
87
virtual
int
ProcessRequest
(
vtkInformation
*,
vtkInformationVector
**,
88
vtkInformationVector
*);
89
//BTX
90
protected
:
91
vtkGenericDataObjectReader
();
92
~
vtkGenericDataObjectReader
();
94
95
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
96
vtkInformationVector
*);
97
virtual
int
RequestDataObject(
vtkInformation
*,
vtkInformationVector
**,
98
vtkInformationVector
*);
99
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
100
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
101
vtkInformationVector
*);
102
103
private
:
104
vtkGenericDataObjectReader
(
const
vtkGenericDataObjectReader
&);
// Not implemented.
105
void
operator=(
const
vtkGenericDataObjectReader
&);
// Not implemented.
106
107
template
<
typename
ReaderT,
typename
DataT>
108
void
ReadData(
const
char
* dataClass,
vtkDataObject
* output);
109
110
vtkSetStringMacro(Header);
111
//ETX
112
};
113
114
#endif
Generated on Fri Aug 2 2013 12:20:00 for VTK by
1.8.4