VTK
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 =========================================================================*/
32 #ifndef vtkXMLMultiBlockDataReader_h
33 #define vtkXMLMultiBlockDataReader_h
34 
35 #include "vtkIOXMLModule.h" // For export macro
37 
39 
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
47 protected:
49  ~vtkXMLMultiBlockDataReader() override;
50 
51  // Read the XML element for the subtree of a the composite dataset.
52  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
53  void ReadComposite(vtkXMLDataElement* element,
54  vtkCompositeDataSet* composite, const char* filePath,
55  unsigned int &dataSetIndex) override;
56 
57  // Reads file version < 1.0.
58  virtual void ReadVersion0(vtkXMLDataElement* element,
59  vtkCompositeDataSet* composite, const char* filePath,
60  unsigned int &dataSetIndex);
61 
62  // Get the name of the data set being read.
63  const char* GetDataSetName() override;
64 
65  int FillOutputPortInformation(int, vtkInformation* info) override;
66 
69  vtkInformationVector*) override;
70 
71  virtual int FillMetaData(vtkCompositeDataSet* metadata,
72  vtkXMLDataElement* element,
73  const std::string &filePath,
74  unsigned int& dataSetIndex);
75 
76 private:
78  void operator=(const vtkXMLMultiBlockDataReader&) = delete;
79 };
80 
81 #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
a simple class to control print indentation
Definition: vtkIndent.h:39
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.