VTK  9.2.6
vtkXMLMultiBlockDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkXMLMultiBlockDataReader.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 =========================================================================*/
51 #ifndef vtkXMLMultiBlockDataReader_h
52 #define vtkXMLMultiBlockDataReader_h
53 
54 #include "vtkIOXMLModule.h" // For export macro
56 
58 
60 {
61 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
66 protected:
69 
70  // Read the XML element for the subtree of a the composite dataset.
71  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
73  const char* filePath, unsigned int& dataSetIndex) override;
74 
75  // Reads file version < 1.0.
76  virtual void ReadVersion0(vtkXMLDataElement* element, vtkCompositeDataSet* composite,
77  const char* filePath, unsigned int& dataSetIndex);
78 
79  // Get the name of the data set being read.
80  const char* GetDataSetName() override;
81 
83 
85 
86  virtual int FillMetaData(vtkCompositeDataSet* metadata, vtkXMLDataElement* element,
87  const std::string& filePath, unsigned int& dataSetIndex);
88 
89 private:
91  void operator=(const vtkXMLMultiBlockDataReader&) = delete;
92 
93  bool DistributePiecesInMultiPieces;
94 };
95 
96 #endif
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:119
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.
const char * GetDataSetName() override
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)
virtual void ReadVersion0(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)
@ info
Definition: vtkX3D.h:382
@ string
Definition: vtkX3D.h:496