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