VTK  9.7.1
vtkXMLPartitionedDataSetReader.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 vtkXMLPartitionedDataSetReader_h
22 #define vtkXMLPartitionedDataSetReader_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:
40 
41  // Get the name of the data set being read.
42  const char* GetDataSetName() override;
43 
44  // Read the XML element for the subtree of a 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  int FillOutputPortInformation(int, vtkInformation* info) override;
50 
54  void CreateMetaData(vtkXMLDataElement* ePrimary) override;
55 
61  const std::string& filePath) override;
62 
63 private:
65  void operator=(const vtkXMLPartitionedDataSetReader&) = delete;
66 };
67 
68 VTK_ABI_NAMESPACE_END
69 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
Reader for multi-group datasets.
virtual void SyncCompositeDataArraySelections(vtkCompositeDataSet *composite, vtkXMLDataElement *element, const std::string &filePath)=0
Recursively synchronize the data array selection of the reader for the file specified in the XML elem...
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 partitioned 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
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void CreateMetaData(vtkXMLDataElement *ePrimary)=0
Create the meta-data from the composite dataset from the file.