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) VTK_OVERRIDE;
43 
44 protected:
46  ~vtkXMLMultiBlockDataReader() VTK_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) VTK_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() VTK_OVERRIDE;
61 
62  int FillOutputPortInformation(int, vtkInformation* info) VTK_OVERRIDE;
63 
64  int RequestInformation(vtkInformation*,
66  vtkInformationVector*) VTK_OVERRIDE;
67 
68  virtual int FillMetaData(vtkCompositeDataSet* metadata,
69  vtkXMLDataElement* element,
70  unsigned int& dataSetIndex);
71 
72 private:
73  vtkXMLMultiBlockDataReader(const vtkXMLMultiBlockDataReader&) VTK_DELETE_FUNCTION;
74  void operator=(const vtkXMLMultiBlockDataReader&) VTK_DELETE_FUNCTION;
75 };
76 
77 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
Reader for multi-group datasets.
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:33
Reader for multi-block datasets.
Composite dataset that organizes datasets into blocks.
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.