VTK
9.6.2
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
IO
XML
vtkXMLMultiBlockDataReader.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2
// SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3
// SPDX-License-Identifier: BSD-3-Clause
23
24
#ifndef vtkXMLMultiBlockDataReader_h
25
#define vtkXMLMultiBlockDataReader_h
26
27
#include "vtkIOXMLModule.h"
// For export macro
28
#include "
vtkXMLCompositeDataReader.h
"
29
30
VTK_ABI_NAMESPACE_BEGIN
31
class
vtkMultiBlockDataSet
;
32
33
class
VTKIOXML_EXPORT
vtkXMLMultiBlockDataReader
:
public
vtkXMLCompositeDataReader
34
{
35
public
:
36
static
vtkXMLMultiBlockDataReader
*
New
();
37
vtkTypeMacro(
vtkXMLMultiBlockDataReader
,
vtkXMLCompositeDataReader
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
39
40
protected
:
41
vtkXMLMultiBlockDataReader
();
42
~vtkXMLMultiBlockDataReader
()
override
;
43
44
// Read the XML element for the subtree of a the composite dataset.
45
// dataSetIndex is used to rank the leaf nodes in an inorder traversal.
46
void
ReadComposite
(
vtkXMLDataElement
* element,
vtkCompositeDataSet
* composite,
47
const
char
* filePath,
unsigned
int
& dataSetIndex)
override
;
48
49
// Reads file version < 1.0.
50
virtual
void
ReadVersion0
(
vtkXMLDataElement
* element,
vtkCompositeDataSet
* composite,
51
const
char
* filePath,
unsigned
int
& dataSetIndex);
52
53
// Get the name of the data set being read.
54
const
char
*
GetDataSetName
()
override
;
55
56
int
FillOutputPortInformation
(
int
,
vtkInformation
* info)
override
;
57
58
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
59
60
virtual
int
FillMetaData
(
vtkCompositeDataSet
* metadata,
vtkXMLDataElement
* element,
61
const
std::string& filePath,
unsigned
int
& dataSetIndex);
62
63
private
:
64
vtkXMLMultiBlockDataReader
(
const
vtkXMLMultiBlockDataReader
&) =
delete
;
65
void
operator=(
const
vtkXMLMultiBlockDataReader
&) =
delete
;
66
67
bool
DistributePiecesInMultiPieces;
68
};
69
70
VTK_ABI_NAMESPACE_END
71
#endif
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition
vtkCompositeDataSet.h:42
vtkIndent