Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/IO/vtkXMLRectilinearGridReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLRectilinearGridReader.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 __vtkXMLRectilinearGridReader_h 00033 #define __vtkXMLRectilinearGridReader_h 00034 00035 #include "vtkXMLStructuredDataReader.h" 00036 00037 class vtkRectilinearGrid; 00038 00039 class VTK_IO_EXPORT vtkXMLRectilinearGridReader : public vtkXMLStructuredDataReader 00040 { 00041 public: 00042 vtkTypeRevisionMacro(vtkXMLRectilinearGridReader,vtkXMLStructuredDataReader); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 static vtkXMLRectilinearGridReader *New(); 00045 00047 00048 void SetOutput(vtkRectilinearGrid *output); 00049 vtkRectilinearGrid *GetOutput(); 00050 vtkRectilinearGrid *GetOutput(int idx); 00052 00053 protected: 00054 vtkXMLRectilinearGridReader(); 00055 ~vtkXMLRectilinearGridReader(); 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 int ReadPiece(vtkXMLDataElement* ePiece); 00065 int ReadPieceData(); 00066 int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds, 00067 vtkXMLDataElement* da, vtkDataArray* array); 00068 00069 // The elements representing the coordinate arrays for each piece. 00070 vtkXMLDataElement** CoordinateElements; 00071 00072 private: 00073 vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&); // Not implemented. 00074 void operator=(const vtkXMLRectilinearGridReader&); // Not implemented. 00075 }; 00076 00077 #endif