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

dox/IO/vtkXMLPRectilinearGridReader.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkXMLPRectilinearGridReader.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 __vtkXMLPRectilinearGridReader_h 00033 #define __vtkXMLPRectilinearGridReader_h 00034 00035 #include "vtkXMLPStructuredDataReader.h" 00036 00037 class vtkRectilinearGrid; 00038 00039 class VTK_IO_EXPORT vtkXMLPRectilinearGridReader : public vtkXMLPStructuredDataReader 00040 { 00041 public: 00042 vtkTypeRevisionMacro(vtkXMLPRectilinearGridReader,vtkXMLPStructuredDataReader); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 static vtkXMLPRectilinearGridReader *New(); 00045 00047 00048 void SetOutput(vtkRectilinearGrid *output); 00049 vtkRectilinearGrid *GetOutput(); 00051 00052 protected: 00053 vtkXMLPRectilinearGridReader(); 00054 ~vtkXMLPRectilinearGridReader(); 00055 00056 vtkRectilinearGrid* GetPieceInput(int index); 00057 00058 const char* GetDataSetName(); 00059 void SetOutputExtent(int* extent); 00060 void GetPieceInputExtent(int index, int* extent); 00061 int ReadPrimaryElement(vtkXMLDataElement* ePrimary); 00062 void SetupOutputInformation(); 00063 void SetupOutputData(); 00064 int ReadPieceData(); 00065 vtkXMLDataReader* CreatePieceReader(); 00066 void CopySubCoordinates(int* inBounds, int* outBounds, int* subBounds, 00067 vtkDataArray* inArray, vtkDataArray* outArray); 00068 00069 // The PCoordinates element with coordinate information. 00070 vtkXMLDataElement* PCoordinatesElement; 00071 00072 private: 00073 vtkXMLPRectilinearGridReader(const vtkXMLPRectilinearGridReader&); // Not implemented. 00074 void operator=(const vtkXMLPRectilinearGridReader&); // Not implemented. 00075 }; 00076 00077 #endif