VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
IO
vtkCompositeDataReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: $RCSfile$
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
=========================================================================*/
20
#ifndef __vtkCompositeDataReader_h
21
#define __vtkCompositeDataReader_h
22
23
#include "
vtkDataReader.h
"
24
25
class
vtkCompositeDataSet
;
26
class
vtkMultiBlockDataSet
;
27
class
vtkMultiPieceDataSet
;
28
class
vtkHierarchicalBoxDataSet
;
29
30
class
VTK_IO_EXPORT
vtkCompositeDataReader
:
public
vtkDataReader
31
{
32
public
:
33
static
vtkCompositeDataReader
*
New
();
34
vtkTypeMacro(
vtkCompositeDataReader
,
vtkDataReader
);
35
void
PrintSelf
(ostream& os,
vtkIndent
indent);
36
38
39
vtkCompositeDataSet
*GetOutput();
40
vtkCompositeDataSet
*GetOutput(
int
idx);
41
void
SetOutput(
vtkCompositeDataSet
*output);
43
44
//BTX
45
protected
:
46
vtkCompositeDataReader
();
47
~
vtkCompositeDataReader
();
48
49
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
50
vtkInformationVector
*);
51
52
// Override ProcessRequest to handle request data object event
53
virtual
int
ProcessRequest
(
vtkInformation
*,
vtkInformationVector
**,
54
vtkInformationVector
*);
55
56
// Since the Outputs[0] has the same UpdateExtent format
57
// as the generic DataObject we can copy the UpdateExtent
58
// as a default behavior.
59
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
60
vtkInformationVector
*);
61
62
// Create output (a directed or undirected graph).
63
virtual
int
RequestDataObject(
vtkInformation
*,
vtkInformationVector
**,
64
vtkInformationVector
*);
65
66
virtual
int
FillOutputPortInformation
(
int
,
vtkInformation
*);
67
69
int
ReadOutputType();
70
71
bool
ReadCompositeData(
vtkMultiPieceDataSet
*);
72
bool
ReadCompositeData(
vtkMultiBlockDataSet
*);
73
bool
ReadCompositeData(
vtkHierarchicalBoxDataSet
*);
74
vtkDataObject
* ReadChild();
75
76
private
:
77
vtkCompositeDataReader
(
const
vtkCompositeDataReader
&);
// Not implemented.
78
void
operator=(
const
vtkCompositeDataReader
&);
// Not implemented.
79
//ETX
80
};
81
82
#endif
Generated on Wed Nov 21 2012 21:33:58 for VTK by
1.8.2