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

IO/vtkXMLRectilinearGridReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLRectilinearGridReader.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 =========================================================================*/
00028 #ifndef __vtkXMLRectilinearGridReader_h
00029 #define __vtkXMLRectilinearGridReader_h
00030 
00031 #include "vtkXMLStructuredDataReader.h"
00032 
00033 class vtkRectilinearGrid;
00034 
00035 class VTK_IO_EXPORT vtkXMLRectilinearGridReader : public vtkXMLStructuredDataReader
00036 {
00037 public:
00038   vtkTypeRevisionMacro(vtkXMLRectilinearGridReader,vtkXMLStructuredDataReader);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040   static vtkXMLRectilinearGridReader *New();
00041   
00043 
00044   void SetOutput(vtkRectilinearGrid *output);
00045   vtkRectilinearGrid *GetOutput();
00046   vtkRectilinearGrid *GetOutput(int idx);
00048   
00049 protected:
00050   vtkXMLRectilinearGridReader();
00051   ~vtkXMLRectilinearGridReader();  
00052   
00053   const char* GetDataSetName();
00054   void SetOutputExtent(int* extent);
00055   
00056   void SetupPieces(int numPieces);
00057   void DestroyPieces();
00058   void SetupOutputInformation();
00059   void SetupOutputData();
00060   int ReadPiece(vtkXMLDataElement* ePiece);
00061   int ReadPieceData();
00062   int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds,
00063                          vtkXMLDataElement* da, vtkDataArray* array);
00064   
00065   // The elements representing the coordinate arrays for each piece.
00066   vtkXMLDataElement** CoordinateElements;
00067   
00068 private:
00069   vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&);  // Not implemented.
00070   void operator=(const vtkXMLRectilinearGridReader&);  // Not implemented.
00071 };
00072 
00073 #endif