VTK
vtkXMLHierarchicalBoxDataReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkXMLHierarchicalBoxDataReader.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 =========================================================================*/
34 #ifndef __vtkXMLHierarchicalBoxDataReader_h
35 #define __vtkXMLHierarchicalBoxDataReader_h
36 
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
46 protected:
49 
50  // Get the name of the data set being read.
51  virtual const char* GetDataSetName();
52 
54 
55  // Read the XML element for the subtree of a the composite dataset.
56  // dataSetIndex is used to rank the leaf nodes in an inorder traversal.
57  virtual void ReadComposite(vtkXMLDataElement* element,
58  vtkCompositeDataSet* composite, const char* filePath,
59  unsigned int &dataSetIndex);
60 
61  // Read the vtkDataSet (a leaf) in the composite dataset.
62  virtual vtkDataSet* ReadDataset(vtkXMLDataElement* xmlElem, const char* filePath);
63 
64  // Read v0.1
65  virtual void ReadVersion0(vtkXMLDataElement* element,
66  vtkCompositeDataSet* composite, const char* filePath,
67  unsigned int &dataSetIndex);
68 
69 
70 private:
72  void operator=(const vtkXMLHierarchicalBoxDataReader&); // Not implemented.
73 
74 };
75 
76 #endif
virtual const char * GetDataSetName()
Represents an XML element and those nested inside.
virtual int FillOutputPortInformation(int, vtkInformation *info)
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
Reader for multi-group datasets.
virtual vtkDataSet * ReadDataset(vtkXMLDataElement *xmlElem, const char *filePath)
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)=0
static vtkAlgorithm * New()
#define VTK_IO_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
Reader for hierarchical datasets.