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

vtkXMLPStructuredGridReader.h

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