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