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

# IO/vtkXMLPUnstructuredGridReader.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkXMLPUnstructuredGridReader.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 __vtkXMLPUnstructuredGridReader_h
    00043 #define __vtkXMLPUnstructuredGridReader_h
    00044
    00045 #include "vtkXMLPUnstructuredDataReader.h"
    00046
    00047 class vtkUnstructuredGrid;
    00048
    00049 class VTK_IO_EXPORT vtkXMLPUnstructuredGridReader : public vtkXMLPUnstructuredDataReader
    00050 {
    00051 public:
    00052   vtkTypeRevisionMacro(vtkXMLPUnstructuredGridReader,vtkXMLPUnstructuredDataReader);
    00053   void PrintSelf(ostream& os, vtkIndent indent);
    00054   static vtkXMLPUnstructuredGridReader *New();
    00055
    00057
    00058   void SetOutput(vtkUnstructuredGrid *output);
    00059   vtkUnstructuredGrid *GetOutput();
    00061
    00062 protected:
    00063   vtkXMLPUnstructuredGridReader();
    00064   ~vtkXMLPUnstructuredGridReader();
    00065
    00066   const char* GetDataSetName();
    00067   void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
    00068   void SetupOutputTotals();
    00069
    00070   void SetupOutputData();
    00071   void SetupNextPiece();
    00072   int ReadPieceData();
    00073
    00074   void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
    00075   vtkXMLDataReader* CreatePieceReader();
    00076
    00077   // The index of the cell in the output where the current piece
    00078   // begins.
    00079   vtkIdType StartCell;
    00080
    00081 private:
    00082   vtkXMLPUnstructuredGridReader(const vtkXMLPUnstructuredGridReader&);  // Not implemented.
    00083   void operator=(const vtkXMLPUnstructuredGridReader&);  // Not implemented.
    00084 };
    00085
    00086 #endif