VTK
|
00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: vtkXMLHierarchicalBoxDataReader.h 00005 00006 Copyright (c) Kitware, Inc. 00007 All rights reserved. 00008 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00034 #ifndef __vtkXMLHierarchicalBoxDataReader_h 00035 #define __vtkXMLHierarchicalBoxDataReader_h 00036 00037 #include "vtkXMLCompositeDataReader.h" 00038 00039 class VTK_IO_EXPORT vtkXMLHierarchicalBoxDataReader : public vtkXMLCompositeDataReader 00040 { 00041 public: 00042 static vtkXMLHierarchicalBoxDataReader* New(); 00043 vtkTypeMacro(vtkXMLHierarchicalBoxDataReader,vtkXMLCompositeDataReader); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00046 protected: 00047 vtkXMLHierarchicalBoxDataReader(); 00048 ~vtkXMLHierarchicalBoxDataReader(); 00049 00050 // Get the name of the data set being read. 00051 virtual const char* GetDataSetName(); 00052 00053 virtual int FillOutputPortInformation(int, vtkInformation* info); 00054 00055 // Read the XML element for the subtree of a the composite dataset. 00056 // dataSetIndex is used to rank the leaf nodes in an inorder traversal. 00057 virtual void ReadComposite(vtkXMLDataElement* element, 00058 vtkCompositeDataSet* composite, const char* filePath, 00059 unsigned int &dataSetIndex); 00060 00061 // Read the vtkDataSet (a leaf) in the composite dataset. 00062 virtual vtkDataSet* ReadDataset(vtkXMLDataElement* xmlElem, const char* filePath); 00063 00064 // Read v0.1 00065 virtual void ReadVersion0(vtkXMLDataElement* element, 00066 vtkCompositeDataSet* composite, const char* filePath, 00067 unsigned int &dataSetIndex); 00068 00069 00070 private: 00071 vtkXMLHierarchicalBoxDataReader(const vtkXMLHierarchicalBoxDataReader&); // Not implemented. 00072 void operator=(const vtkXMLHierarchicalBoxDataReader&); // Not implemented. 00073 00074 }; 00075 00076 #endif