VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkXMLPStructuredGridReader.h 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 "vtkIOXMLModule.h" // For export macro 00032 #include "vtkXMLPStructuredDataReader.h" 00033 00034 class vtkStructuredGrid; 00035 00036 class VTKIOXML_EXPORT vtkXMLPStructuredGridReader : public vtkXMLPStructuredDataReader 00037 { 00038 public: 00039 vtkTypeMacro(vtkXMLPStructuredGridReader,vtkXMLPStructuredDataReader); 00040 void PrintSelf(ostream& os, vtkIndent indent); 00041 static vtkXMLPStructuredGridReader *New(); 00042 00044 vtkStructuredGrid *GetOutput(); 00045 00047 vtkStructuredGrid* GetOutput(int idx); 00048 00049 protected: 00050 vtkXMLPStructuredGridReader(); 00051 ~vtkXMLPStructuredGridReader(); 00052 00053 vtkStructuredGrid* GetPieceInput(int index); 00054 00055 void SetupEmptyOutput(); 00056 const char* GetDataSetName(); 00057 void SetOutputExtent(int* extent); 00058 void GetPieceInputExtent(int index, int* extent); 00059 int ReadPrimaryElement(vtkXMLDataElement* ePrimary); 00060 void SetupOutputData(); 00061 int ReadPieceData(); 00062 vtkXMLDataReader* CreatePieceReader(); 00063 virtual int FillOutputPortInformation(int, vtkInformation*); 00064 00065 // The PPoints element with point information. 00066 vtkXMLDataElement* PPointsElement; 00067 00068 private: 00069 vtkXMLPStructuredGridReader(const vtkXMLPStructuredGridReader&); // Not implemented. 00070 void operator=(const vtkXMLPStructuredGridReader&); // Not implemented. 00071 }; 00072 00073 #endif