00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLStructuredGridReader.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm 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 =========================================================================*/ 00044 #ifndef __vtkXMLStructuredGridReader_h 00045 #define __vtkXMLStructuredGridReader_h 00046 00047 #include "vtkXMLStructuredDataReader.h" 00048 00049 class vtkStructuredGrid; 00050 00051 class VTK_IO_EXPORT vtkXMLStructuredGridReader : public vtkXMLStructuredDataReader 00052 { 00053 public: 00054 vtkTypeRevisionMacro(vtkXMLStructuredGridReader,vtkXMLStructuredDataReader); 00055 void PrintSelf(ostream& os, vtkIndent indent); 00056 static vtkXMLStructuredGridReader *New(); 00057 00059 00060 void SetOutput(vtkStructuredGrid *output); 00061 vtkStructuredGrid *GetOutput(); 00062 vtkStructuredGrid *GetOutput(int idx); 00064 00065 protected: 00066 vtkXMLStructuredGridReader(); 00067 ~vtkXMLStructuredGridReader(); 00068 00069 const char* GetDataSetName(); 00070 void SetOutputExtent(int* extent); 00071 00072 void SetupPieces(int numPieces); 00073 void DestroyPieces(); 00074 void SetupOutputInformation(); 00075 void SetupOutputData(); 00076 00077 int ReadPiece(vtkXMLDataElement* ePiece); 00078 int ReadPieceData(); 00079 00080 // The elements representing the points for each piece. 00081 vtkXMLDataElement** PointElements; 00082 00083 private: 00084 vtkXMLStructuredGridReader(const vtkXMLStructuredGridReader&); // Not implemented. 00085 void operator=(const vtkXMLStructuredGridReader&); // Not implemented. 00086 }; 00087 00088 #endif