VTK
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 =========================================================================*/
32 #ifndef vtkXMLPUnstructuredGridReader_h
33 #define vtkXMLPUnstructuredGridReader_h
34 
35 #include "vtkIOXMLModule.h" // For export macro
37 
39 
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
46 
48 
51  vtkUnstructuredGrid *GetOutput();
52  vtkUnstructuredGrid *GetOutput(int idx);
54 
55 protected:
58 
59  const char* GetDataSetName();
60  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
61  void SetupOutputTotals();
62 
63  void SetupOutputData();
64  void SetupNextPiece();
65  int ReadPieceData();
66 
67  void CopyArrayForCells(vtkDataArray* inArray, vtkDataArray* outArray);
69  virtual int FillOutputPortInformation(int, vtkInformation*);
70 
71  virtual void SqueezeOutputArrays(vtkDataObject*);
72 
73  // The index of the cell in the output where the current piece
74  // begins.
76 
77 private:
79  void operator=(const vtkXMLPUnstructuredGridReader&) VTK_DELETE_FUNCTION;
80 };
81 
82 #endif
virtual void SqueezeOutputArrays(vtkDataObject *)
Definition: vtkXMLReader.h:276
virtual const char * GetDataSetName()=0
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
int vtkIdType
Definition: vtkType.h:287
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Read PVTK XML UnstructuredGrid files.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:54
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)
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Definition: vtkDataObject.h:64