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

IO/vtkXMLPStructuredGridReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkXMLPStructuredGridReader.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 __vtkXMLPStructuredGridReader_h
00044 #define __vtkXMLPStructuredGridReader_h
00045 
00046 #include "vtkXMLPStructuredDataReader.h"
00047 
00048 class vtkStructuredGrid;
00049 
00050 class VTK_IO_EXPORT vtkXMLPStructuredGridReader : public vtkXMLPStructuredDataReader
00051 {
00052 public:
00053   vtkTypeRevisionMacro(vtkXMLPStructuredGridReader,vtkXMLPStructuredDataReader);
00054   void PrintSelf(ostream& os, vtkIndent indent);
00055   static vtkXMLPStructuredGridReader *New();
00056   
00058 
00059   void SetOutput(vtkStructuredGrid *output);
00060   vtkStructuredGrid *GetOutput();
00062   
00063 protected:
00064   vtkXMLPStructuredGridReader();
00065   ~vtkXMLPStructuredGridReader();
00066   
00067   vtkStructuredGrid* GetPieceInput(int index);
00068   
00069   const char* GetDataSetName();
00070   void SetOutputExtent(int* extent);
00071   void GetPieceInputExtent(int index, int* extent);
00072   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00073   void SetupOutputInformation();
00074   void SetupOutputData();
00075   int ReadPieceData();
00076   vtkXMLDataReader* CreatePieceReader();  
00077   
00078   // The PPoints element with point information.
00079   vtkXMLDataElement* PPointsElement;
00080   
00081 private:
00082   vtkXMLPStructuredGridReader(const vtkXMLPStructuredGridReader&);  // Not implemented.
00083   void operator=(const vtkXMLPStructuredGridReader&);  // Not implemented.
00084 };
00085 
00086 #endif