VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkXMLPUnstructuredGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPUnstructuredGridReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
28 #ifndef __vtkXMLPUnstructuredGridReader_h
29 #define __vtkXMLPUnstructuredGridReader_h
30 
31 #include "vtkIOXMLModule.h" // For export macro
33 
35 
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent);
42 
44 
45  vtkUnstructuredGrid *GetOutput();
46  vtkUnstructuredGrid *GetOutput(int idx);
48 
49 protected:
52 
53  const char* GetDataSetName();
54  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
55  void SetupOutputTotals();
56 
57  void SetupOutputData();
58  void SetupNextPiece();
59  int ReadPieceData();
60 
61  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
63  virtual int FillOutputPortInformation(int, vtkInformation*);
64 
65  // The index of the cell in the output where the current piece
66  // begins.
68 
69 private:
71  void operator=(const vtkXMLPUnstructuredGridReader&); // Not implemented.
72 };
73 
74 #endif
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
int vtkIdType
Definition: vtkType.h:268
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKIOXML_EXPORT
dataset represents arbitrary combinations of all possible cell types
Read PVTK XML UnstructuredGrid files.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:53
Superclass for parallel unstructured data XML readers.
virtual void CopyArrayForCells(vtkDataArray *inArray, vtkDataArray *outArray)=0
virtual void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)=0
Superclass for VTK XML file readers.
virtual void SetupOutputTotals()
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)