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

# IO/vtkXMLPPolyDataReader.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkXMLPPolyDataReader.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 __vtkXMLPPolyDataReader_h
    00043 #define __vtkXMLPPolyDataReader_h
    00044
    00045 #include "vtkXMLPUnstructuredDataReader.h"
    00046
    00047 class vtkPolyData;
    00048
    00049 class VTK_IO_EXPORT vtkXMLPPolyDataReader : public vtkXMLPUnstructuredDataReader
    00050 {
    00051 public:
    00052   vtkTypeRevisionMacro(vtkXMLPPolyDataReader,vtkXMLPUnstructuredDataReader);
    00053   void PrintSelf(ostream& os, vtkIndent indent);
    00054   static vtkXMLPPolyDataReader *New();
    00055
    00057
    00058   void SetOutput(vtkPolyData *output);
    00059   vtkPolyData *GetOutput();
    00061
    00062 protected:
    00063   vtkXMLPPolyDataReader();
    00064   ~vtkXMLPPolyDataReader();
    00065
    00066   const char* GetDataSetName();
    00067   void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
    00068   vtkIdType GetNumberOfCellsInPiece(int piece);
    00069   vtkIdType GetNumberOfVertsInPiece(int piece);
    00070   vtkIdType GetNumberOfLinesInPiece(int piece);
    00071   vtkIdType GetNumberOfStripsInPiece(int piece);
    00072   vtkIdType GetNumberOfPolysInPiece(int piece);
    00073   void SetupOutputTotals();
    00074
    00075   void SetupOutputData();
    00076   void SetupNextPiece();
    00077   int ReadPieceData();
    00078
    00079   void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
    00080   vtkXMLDataReader* CreatePieceReader();
    00081
    00082   // The size of the UpdatePiece.
    00083   vtkIdType TotalNumberOfVerts;
    00084   vtkIdType TotalNumberOfLines;
    00085   vtkIdType TotalNumberOfStrips;
    00086   vtkIdType TotalNumberOfPolys;
    00087   vtkIdType StartVert;
    00088   vtkIdType StartLine;
    00089   vtkIdType StartStrip;
    00090   vtkIdType StartPoly;
    00091
    00092 private:
    00093   vtkXMLPPolyDataReader(const vtkXMLPPolyDataReader&);  // Not implemented.
    00094   void operator=(const vtkXMLPPolyDataReader&);  // Not implemented.
    00095 };
    00096
    00097 #endif