VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/IO/XML/vtkXMLPRectilinearGridReader.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkXMLPRectilinearGridReader.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 =========================================================================*/
00031 #ifndef vtkXMLPRectilinearGridReader_h
00032 #define vtkXMLPRectilinearGridReader_h
00033 
00034 #include "vtkIOXMLModule.h" // For export macro
00035 #include "vtkXMLPStructuredDataReader.h"
00036 
00037 class vtkRectilinearGrid;
00038 
00039 class VTKIOXML_EXPORT vtkXMLPRectilinearGridReader : public vtkXMLPStructuredDataReader
00040 {
00041 public:
00042   vtkTypeMacro(vtkXMLPRectilinearGridReader,vtkXMLPStructuredDataReader);
00043   void PrintSelf(ostream& os, vtkIndent indent);
00044   static vtkXMLPRectilinearGridReader *New();
00045 
00047 
00048   vtkRectilinearGrid *GetOutput();
00049   vtkRectilinearGrid *GetOutput(int idx);
00051 
00052 protected:
00053   vtkXMLPRectilinearGridReader();
00054   ~vtkXMLPRectilinearGridReader();
00055 
00056   vtkRectilinearGrid* GetPieceInput(int index);
00057 
00058   void SetupEmptyOutput();
00059   const char* GetDataSetName();
00060   void SetOutputExtent(int* extent);
00061   void GetPieceInputExtent(int index, int* extent);
00062   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00063   void SetupOutputData();
00064   int ReadPieceData();
00065   vtkXMLDataReader* CreatePieceReader();
00066   void CopySubCoordinates(int* inBounds, int* outBounds, int* subBounds,
00067                           vtkDataArray* inArray, vtkDataArray* outArray);
00068   virtual int FillOutputPortInformation(int, vtkInformation*);
00069 
00070   // The PCoordinates element with coordinate information.
00071   vtkXMLDataElement* PCoordinatesElement;
00072 
00073 private:
00074   vtkXMLPRectilinearGridReader(const vtkXMLPRectilinearGridReader&);  // Not implemented.
00075   void operator=(const vtkXMLPRectilinearGridReader&);  // Not implemented.
00076 };
00077 
00078 #endif