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