VTK  9.5.20250805
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
43#ifndef vtkXMLMultiBlockDataReader_h
44#define vtkXMLMultiBlockDataReader_h
45
46#include "vtkIOXMLModule.h" // For export macro
48
49VTK_ABI_NAMESPACE_BEGIN
51
53{
54public:
57 void PrintSelf(ostream& os, vtkIndent indent) override;
58
59protected:
62
63 // Read the XML element for the subtree of a the composite dataset.
64 // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
66 const char* filePath, unsigned int& dataSetIndex) override;
67
68 // Reads file version < 1.0.
69 virtual void ReadVersion0(vtkXMLDataElement* element, vtkCompositeDataSet* composite,
70 const char* filePath, unsigned int& dataSetIndex);
71
72 // Get the name of the data set being read.
73 const char* GetDataSetName() override;
74
75 int FillOutputPortInformation(int, vtkInformation* info) override;
76
78
79 virtual int FillMetaData(vtkCompositeDataSet* metadata, vtkXMLDataElement* element,
80 const std::string& filePath, unsigned int& dataSetIndex);
81
82private:
84 void operator=(const vtkXMLMultiBlockDataReader&) = delete;
85
86 bool DistributePiecesInMultiPieces;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Composite dataset that organizes datasets into blocks.
Reader for multi-group datasets.
Represents an XML element and those nested inside.
Reader for multi-block datasets.
void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex) override
static vtkXMLMultiBlockDataReader * New()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int, vtkInformation *info) override
Fill the output port information objects for this algorithm.
~vtkXMLMultiBlockDataReader() override
virtual int FillMetaData(vtkCompositeDataSet *metadata, vtkXMLDataElement *element, const std::string &filePath, unsigned int &dataSetIndex)
const char * GetDataSetName() override
Get the name of the data set being read.
virtual void ReadVersion0(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)