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

IO/vtkXMLStructuredGridReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLStructuredGridReader.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 =========================================================================*/
00043 #ifndef __vtkXMLStructuredGridReader_h
00044 #define __vtkXMLStructuredGridReader_h
00045 
00046 #include "vtkXMLStructuredDataReader.h"
00047 
00048 class vtkStructuredGrid;
00049 
00050 class VTK_IO_EXPORT vtkXMLStructuredGridReader : public vtkXMLStructuredDataReader
00051 {
00052 public:
00053   vtkTypeRevisionMacro(vtkXMLStructuredGridReader,vtkXMLStructuredDataReader);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   static vtkXMLStructuredGridReader *New();
00056   
00058 
00059   void SetOutput(vtkStructuredGrid *output);
00060   vtkStructuredGrid *GetOutput();
00061   vtkStructuredGrid *GetOutput(int idx);
00063 
00064 protected:
00065   vtkXMLStructuredGridReader();
00066   ~vtkXMLStructuredGridReader();  
00067   
00068   const char* GetDataSetName();
00069   void SetOutputExtent(int* extent);
00070   
00071   void SetupPieces(int numPieces);
00072   void DestroyPieces();
00073   void SetupOutputInformation();
00074   void SetupOutputData();
00075   
00076   int ReadPiece(vtkXMLDataElement* ePiece);
00077   int ReadPieceData();
00078   
00079   // The elements representing the points for each piece.
00080   vtkXMLDataElement** PointElements;
00081   
00082 private:
00083   vtkXMLStructuredGridReader(const vtkXMLStructuredGridReader&);  // Not implemented.
00084   void operator=(const vtkXMLStructuredGridReader&);  // Not implemented.
00085 };
00086 
00087 #endif