VTK
vtkXMLUnstructuredGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLUnstructuredGridReader.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 =========================================================================*/
35 #ifndef vtkXMLUnstructuredGridReader_h
36 #define vtkXMLUnstructuredGridReader_h
37 
38 #include "vtkIOXMLModule.h" // For export macro
40 
42 class vtkIdTypeArray;
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
50 
52 
55  vtkUnstructuredGrid *GetOutput();
56  vtkUnstructuredGrid *GetOutput(int idx);
58 
59 protected:
61  ~vtkXMLUnstructuredGridReader() VTK_OVERRIDE;
62 
63  const char* GetDataSetName() VTK_OVERRIDE;
64  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) VTK_OVERRIDE;
65  void SetupOutputTotals() VTK_OVERRIDE;
66  void SetupPieces(int numPieces) VTK_OVERRIDE;
67  void DestroyPieces() VTK_OVERRIDE;
68 
69  void SetupOutputData() VTK_OVERRIDE;
70  int ReadPiece(vtkXMLDataElement* ePiece) VTK_OVERRIDE;
71  void SetupNextPiece() VTK_OVERRIDE;
72  int ReadPieceData() VTK_OVERRIDE;
73 
74  // Read a data array whose tuples correspond to cells.
75  int ReadArrayForCells(vtkXMLDataElement* da,
76  vtkAbstractArray* outArray) VTK_OVERRIDE;
77 
78  // Get the number of cells in the given piece. Valid after
79  // UpdateInformation.
80  vtkIdType GetNumberOfCellsInPiece(int piece) VTK_OVERRIDE;
81 
82  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
83 
84  // The index of the cell in the output where the current piece
85  // begins.
86  vtkIdType StartCell;
87 
88  // The Cells element for each piece.
89  vtkXMLDataElement** CellElements;
90  vtkIdType* NumberOfCells;
91 
92  int CellsTimeStep;
93  unsigned long CellsOffset;
94 
95 private:
97  void operator=(const vtkXMLUnstructuredGridReader&) VTK_DELETE_FUNCTION;
98 };
99 
100 #endif
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
Abstract superclass for all arrays.
Superclass for unstructured data XML readers.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:345
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Read VTK XML UnstructuredGrid files.
static vtkAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.