Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00042 #ifndef __vtkXMLPStructuredGridReader_h
    00043 #define __vtkXMLPStructuredGridReader_h
    00044
    00045 #include "vtkXMLPStructuredDataReader.h"
    00046
    00047 class vtkStructuredGrid;
    00048
    00049 class VTK_IO_EXPORT vtkXMLPStructuredGridReader : public vtkXMLPStructuredDataReader
    00050 {
    00051 public:
    00052   vtkTypeRevisionMacro(vtkXMLPStructuredGridReader,vtkXMLPStructuredDataReader);
    00053   void PrintSelf(ostream& os, vtkIndent indent);
    00054   static vtkXMLPStructuredGridReader *New();
    00055
    00057
    00058   void SetOutput(vtkStructuredGrid *output);
    00059   vtkStructuredGrid *GetOutput();
    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