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 =========================================================================*/
29 #ifndef vtkXMLMultiBlockDataReader_h
30 #define vtkXMLMultiBlockDataReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
36 
38 {
39 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
44 protected:
46  ~vtkXMLMultiBlockDataReader() override;
47 
48  // Read the XML element for the subtree of a the composite dataset.
49  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
50  void ReadComposite(vtkXMLDataElement* element,
51  vtkCompositeDataSet* composite, const char* filePath,
52  unsigned int &dataSetIndex) override;
53 
54  // Reads file version < 1.0.
55  virtual void ReadVersion0(vtkXMLDataElement* element,
56  vtkCompositeDataSet* composite, const char* filePath,
57  unsigned int &dataSetIndex);
58 
59  // Get the name of the data set being read.
60  const char* GetDataSetName() override;
61 
62  int FillOutputPortInformation(int, vtkInformation* info) override;
63 
66  vtkInformationVector*) override;
67 
68  virtual int FillMetaData(vtkCompositeDataSet* metadata,
69  vtkXMLDataElement* element,
70  unsigned int& dataSetIndex);
71 
72 private:
74  void operator=(const vtkXMLMultiBlockDataReader&) = delete;
75 };
76 
77 #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:33
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.