VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLRectilinearGridReader.h 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 =========================================================================*/ 00034 #ifndef __vtkXMLRectilinearGridReader_h 00035 #define __vtkXMLRectilinearGridReader_h 00036 00037 #include "vtkIOXMLModule.h" // For export macro 00038 #include "vtkXMLStructuredDataReader.h" 00039 00040 class vtkRectilinearGrid; 00041 00042 class VTKIOXML_EXPORT vtkXMLRectilinearGridReader : public vtkXMLStructuredDataReader 00043 { 00044 public: 00045 vtkTypeMacro(vtkXMLRectilinearGridReader,vtkXMLStructuredDataReader); 00046 void PrintSelf(ostream& os, vtkIndent indent); 00047 static vtkXMLRectilinearGridReader *New(); 00048 00050 00051 vtkRectilinearGrid *GetOutput(); 00052 vtkRectilinearGrid *GetOutput(int idx); 00054 00055 protected: 00056 vtkXMLRectilinearGridReader(); 00057 ~vtkXMLRectilinearGridReader(); 00058 00059 const char* GetDataSetName(); 00060 void SetOutputExtent(int* extent); 00061 00062 void SetupPieces(int numPieces); 00063 void DestroyPieces(); 00064 void SetupOutputData(); 00065 int ReadPiece(vtkXMLDataElement* ePiece); 00066 int ReadPieceData(); 00067 int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds, 00068 vtkXMLDataElement* da, vtkDataArray* array); 00069 virtual int FillOutputPortInformation(int, vtkInformation*); 00070 00071 // The elements representing the coordinate arrays for each piece. 00072 vtkXMLDataElement** CoordinateElements; 00073 00074 private: 00075 vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&); // Not implemented. 00076 void operator=(const vtkXMLRectilinearGridReader&); // Not implemented. 00077 }; 00078 00079 #endif