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

vtkXMLPRectilinearGridReader.h

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