00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLStructuredGridReader.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkXMLStructuredGridReader_h 00033 #define __vtkXMLStructuredGridReader_h 00034 00035 #include "vtkXMLStructuredDataReader.h" 00036 00037 class vtkStructuredGrid; 00038 00039 class VTK_IO_EXPORT vtkXMLStructuredGridReader : public vtkXMLStructuredDataReader 00040 { 00041 public: 00042 vtkTypeRevisionMacro(vtkXMLStructuredGridReader,vtkXMLStructuredDataReader); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 static vtkXMLStructuredGridReader *New(); 00045 00047 00048 void SetOutput(vtkStructuredGrid *output); 00049 vtkStructuredGrid *GetOutput(); 00050 vtkStructuredGrid *GetOutput(int idx); 00052 00053 protected: 00054 vtkXMLStructuredGridReader(); 00055 ~vtkXMLStructuredGridReader(); 00056 00057 const char* GetDataSetName(); 00058 void SetOutputExtent(int* extent); 00059 00060 void SetupPieces(int numPieces); 00061 void DestroyPieces(); 00062 void SetupOutputInformation(); 00063 void SetupOutputData(); 00064 00065 int ReadPiece(vtkXMLDataElement* ePiece); 00066 int ReadPieceData(); 00067 00068 // The elements representing the points for each piece. 00069 vtkXMLDataElement** PointElements; 00070 00071 private: 00072 vtkXMLStructuredGridReader(const vtkXMLStructuredGridReader&); // Not implemented. 00073 void operator=(const vtkXMLStructuredGridReader&); // Not implemented. 00074 }; 00075 00076 #endif