VTK  9.3.1
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
21 #ifndef vtkXMLMultiBlockDataReader_h
22 #define vtkXMLMultiBlockDataReader_h
23 
24 #include "vtkIOXMLModule.h" // For export macro
26 
27 VTK_ABI_NAMESPACE_BEGIN
29 
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
37 protected:
39  ~vtkXMLMultiBlockDataReader() override;
40 
41  // Read the XML element for the subtree of a the composite dataset.
42  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
43  void ReadComposite(vtkXMLDataElement* element, vtkCompositeDataSet* composite,
44  const char* filePath, unsigned int& dataSetIndex) override;
45 
46  // Reads file version < 1.0.
47  virtual void ReadVersion0(vtkXMLDataElement* element, vtkCompositeDataSet* composite,
48  const char* filePath, unsigned int& dataSetIndex);
49 
50  // Get the name of the data set being read.
51  const char* GetDataSetName() override;
52 
53  int FillOutputPortInformation(int, vtkInformation* info) override;
54 
56 
57  virtual int FillMetaData(vtkCompositeDataSet* metadata, vtkXMLDataElement* element,
58  const std::string& filePath, unsigned int& dataSetIndex);
59 
60 private:
62  void operator=(const vtkXMLMultiBlockDataReader&) = delete;
63 
64  bool DistributePiecesInMultiPieces;
65 };
66 
67 VTK_ABI_NAMESPACE_END
68 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
Reader for multi-group datasets.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
abstract superclass for composite (multi-block or AMR) datasets
const char * GetDataSetName() override
Get the name of the data set being read.
a simple class to control print indentation
Definition: vtkIndent.h:28
Reader for multi-block datasets.
int FillOutputPortInformation(int, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Composite dataset that organizes datasets into blocks.
virtual void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)=0
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.