VTK: IO/XML/vtkXMLPartitionedDataSetReader.h Source File

| VTK 9.3.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
25 #include "vtkXMLCompositeDataReader.h"
26
27 VTK_ABI_NAMESPACE_BEGIN
28 class vtkMultiBlockDataSet;
29
30 class VTKIOXML_EXPORT vtkXMLPartitionedDataSetReader : public vtkXMLCompositeDataReader
31 {
32 public:
33 static vtkXMLPartitionedDataSetReader* New();
34 vtkTypeMacro(vtkXMLPartitionedDataSetReader, vtkXMLCompositeDataReader);
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
37 protected:
38 vtkXMLPartitionedDataSetReader();
39 ~vtkXMLPartitionedDataSetReader() 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 // Get the name of the data set being read.
47 const char* GetDataSetName() override;
48
49 int FillOutputPortInformation(int, vtkInformation* info) override;
50
51 private:
52 vtkXMLPartitionedDataSetReader(const vtkXMLPartitionedDataSetReader&) = delete;
53 void operator=(const vtkXMLPartitionedDataSetReader&) = delete;
54 };
55
56 VTK_ABI_NAMESPACE_END
57 #endif
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:51
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:50
vtkXMLCompositeDataReader
Reader for multi-group datasets.
Definition: vtkXMLCompositeDataReader.h:48
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:26
vtkXMLPartitionedDataSetReader
Reader for partitioned datasets.
Definition: vtkXMLPartitionedDataSetReader.h:31
vtkXMLPartitionedDataSetReader::vtkXMLPartitionedDataSetReader
vtkXMLPartitionedDataSetReader()
vtkXMLPartitionedDataSetReader::FillOutputPortInformation
int FillOutputPortInformation(int, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkXMLPartitionedDataSetReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPartitionedDataSetReader::New
static vtkXMLPartitionedDataSetReader * New()
vtkXMLPartitionedDataSetReader::~vtkXMLPartitionedDataSetReader
~vtkXMLPartitionedDataSetReader() override
vtkXMLPartitionedDataSetReader::GetDataSetName
const char * GetDataSetName() override
Get the name of the data set being read.
vtkXMLPartitionedDataSetReader::ReadComposite
void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex) override
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkXMLCompositeDataReader.h