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

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