Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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   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 =========================================================================*/
00042 #ifndef __vtkXMLRectilinearGridReader_h
00043 #define __vtkXMLRectilinearGridReader_h
00044 
00045 #include "vtkXMLStructuredDataReader.h"
00046 
00047 class vtkRectilinearGrid;
00048 
00049 class VTK_IO_EXPORT vtkXMLRectilinearGridReader : public vtkXMLStructuredDataReader
00050 {
00051 public:
00052   vtkTypeRevisionMacro(vtkXMLRectilinearGridReader,vtkXMLStructuredDataReader);
00053   void PrintSelf(ostream& os, vtkIndent indent);
00054   static vtkXMLRectilinearGridReader *New();
00055   
00057 
00058   void SetOutput(vtkRectilinearGrid *output);
00059   vtkRectilinearGrid *GetOutput();
00060   vtkRectilinearGrid *GetOutput(int idx);
00062   
00063 protected:
00064   vtkXMLRectilinearGridReader();
00065   ~vtkXMLRectilinearGridReader();  
00066   
00067   const char* GetDataSetName();
00068   void SetOutputExtent(int* extent);
00069   
00070   void SetupPieces(int numPieces);
00071   void DestroyPieces();
00072   void SetupOutputInformation();
00073   void SetupOutputData();
00074   int ReadPiece(vtkXMLDataElement* ePiece);
00075   int ReadPieceData();
00076   int ReadSubCoordinates(int* inBounds, int* outBounds, int* subBounds,
00077                          vtkXMLDataElement* da, vtkDataArray* array);
00078   
00079   // The elements representing the coordinate arrays for each piece.
00080   vtkXMLDataElement** CoordinateElements;
00081   
00082 private:
00083   vtkXMLRectilinearGridReader(const vtkXMLRectilinearGridReader&);  // Not implemented.
00084   void operator=(const vtkXMLRectilinearGridReader&);  // Not implemented.
00085 };
00086 
00087 #endif