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 =========================================================================*/
29 #ifndef vtkXMLUnstructuredGridReader_h
30 #define vtkXMLUnstructuredGridReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
36 class vtkIdTypeArray;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
44 
46 
49  vtkUnstructuredGrid *GetOutput();
50  vtkUnstructuredGrid *GetOutput(int idx);
52 
53 protected:
55  ~vtkXMLUnstructuredGridReader() VTK_OVERRIDE;
56 
57  const char* GetDataSetName() VTK_OVERRIDE;
58  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel) VTK_OVERRIDE;
59  void SetupOutputTotals() VTK_OVERRIDE;
60  void SetupPieces(int numPieces) VTK_OVERRIDE;
61  void DestroyPieces() VTK_OVERRIDE;
62 
63  void SetupOutputData() VTK_OVERRIDE;
64  int ReadPiece(vtkXMLDataElement* ePiece) VTK_OVERRIDE;
65  void SetupNextPiece() VTK_OVERRIDE;
66  int ReadPieceData() VTK_OVERRIDE;
67 
68  // Read a data array whose tuples correspond to cells.
69  int ReadArrayForCells(vtkXMLDataElement* da,
70  vtkAbstractArray* outArray) VTK_OVERRIDE;
71 
72  // Get the number of cells in the given piece. Valid after
73  // UpdateInformation.
74  vtkIdType GetNumberOfCellsInPiece(int piece) VTK_OVERRIDE;
75 
76  int FillOutputPortInformation(int, vtkInformation*) VTK_OVERRIDE;
77 
78  // The index of the cell in the output where the current piece
79  // begins.
80  vtkIdType StartCell;
81 
82  // The Cells element for each piece.
83  vtkXMLDataElement** CellElements;
84  vtkIdType* NumberOfCells;
85 
86  int CellsTimeStep;
87  unsigned long CellsOffset;
88 
89 private:
91  void operator=(const vtkXMLUnstructuredGridReader&) VTK_DELETE_FUNCTION;
92 };
93 
94 #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:33
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.