VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkXMLPImageDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXMLPImageDataReader.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
=========================================================================*/
28
#ifndef __vtkXMLPImageDataReader_h
29
#define __vtkXMLPImageDataReader_h
30
31
#include "
vtkXMLPStructuredDataReader.h
"
32
33
class
vtkImageData
;
34
35
class
VTK_IO_EXPORT
vtkXMLPImageDataReader
:
public
vtkXMLPStructuredDataReader
36
{
37
public
:
38
vtkTypeMacro(
vtkXMLPImageDataReader
,
vtkXMLPStructuredDataReader
);
39
void
PrintSelf
(ostream& os,
vtkIndent
indent);
40
static
vtkXMLPImageDataReader
*
New
();
41
43
44
vtkImageData
*GetOutput();
45
vtkImageData
*GetOutput(
int
idx);
47
48
// For the specified port, copy the information this reader sets up in
49
// SetupOutputInformation to outInfo
50
virtual
void
CopyOutputInformation
(
vtkInformation
*outInfo,
int
port
);
51
52
protected
:
53
vtkXMLPImageDataReader
();
54
~
vtkXMLPImageDataReader
();
55
56
double
Origin[3];
57
double
Spacing[3];
58
59
vtkImageData
* GetPieceInput(
int
index
);
60
61
void
SetupEmptyOutput
();
62
const
char
*
GetDataSetName
();
63
void
SetOutputExtent
(
int
*
extent
);
64
void
GetPieceInputExtent
(
int
index
,
int
*
extent
);
65
int
ReadPrimaryElement
(
vtkXMLDataElement
* ePrimary);
66
67
// Setup the output's information.
68
void
SetupOutputInformation
(
vtkInformation
*outInfo);
69
70
vtkXMLDataReader
*
CreatePieceReader
();
71
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
72
73
private
:
74
vtkXMLPImageDataReader
(
const
vtkXMLPImageDataReader
&);
// Not implemented.
75
void
operator=(
const
vtkXMLPImageDataReader
&);
// Not implemented.
76
};
77
78
#endif
Generated on Fri Aug 2 2013 12:20:00 for VTK by
1.8.4