Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | 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 =========================================================================*/
00028 #ifndef __vtkXMLPStructuredGridReader_h
00029 #define __vtkXMLPStructuredGridReader_h
00030 
00031 #include "vtkXMLPStructuredDataReader.h"
00032 
00033 class vtkStructuredGrid;
00034 
00035 class VTK_IO_EXPORT vtkXMLPStructuredGridReader : public vtkXMLPStructuredDataReader
00036 {
00037 public:
00038   vtkTypeRevisionMacro(vtkXMLPStructuredGridReader,vtkXMLPStructuredDataReader);
00039   void PrintSelf(ostream& os, vtkIndent indent);
00040   static vtkXMLPStructuredGridReader *New();
00041   
00043 
00044   void SetOutput(vtkStructuredGrid *output);
00045   vtkStructuredGrid *GetOutput();
00047 
00049   vtkStructuredGrid* GetOutput(int idx);
00050   
00051 protected:
00052   vtkXMLPStructuredGridReader();
00053   ~vtkXMLPStructuredGridReader();
00054   
00055   vtkStructuredGrid* GetPieceInput(int index);
00056   
00057   const char* GetDataSetName();
00058   void SetOutputExtent(int* extent);
00059   void GetPieceInputExtent(int index, int* extent);
00060   int ReadPrimaryElement(vtkXMLDataElement* ePrimary);
00061   void SetupOutputData();
00062   int ReadPieceData();
00063   vtkXMLDataReader* CreatePieceReader();  
00064   virtual int FillOutputPortInformation(int, vtkInformation*);
00065   
00066   // The PPoints element with point information.
00067   vtkXMLDataElement* PPointsElement;
00068   
00069 private:
00070   vtkXMLPStructuredGridReader(const vtkXMLPStructuredGridReader&);  // Not implemented.
00071   void operator=(const vtkXMLPStructuredGridReader&);  // Not implemented.
00072 };
00073 
00074 #endif

Generated on Mon Jan 21 23:07:32 2008 for VTK by  doxygen 1.4.3-20050530