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 =========================================================================*/
34 #ifndef vtkXMLUnstructuredGridReader_h
35 #define vtkXMLUnstructuredGridReader_h
36 
37 #include "vtkIOXMLModule.h" // For export macro
39 
41 class vtkIdTypeArray;
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
55 
56 protected:
59 
60  const char* GetDataSetName();
61  void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
63  void SetupPieces(int numPieces);
64  void DestroyPieces();
65 
70 
71  // Read a data array whose tuples correspond to cells.
73  vtkAbstractArray* outArray);
74 
75  // Get the number of cells in the given piece. Valid after
76  // UpdateInformation.
77  virtual vtkIdType GetNumberOfCellsInPiece(int piece);
78 
80 
81  // The index of the cell in the output where the current piece
82  // begins.
84 
85  // The Cells element for each piece.
88 
90  unsigned long CellsOffset;
91 
92 private:
94  void operator=(const vtkXMLUnstructuredGridReader&); // Not implemented.
95 };
96 
97 #endif
VTKIOXML_EXPORT
#define VTKIOXML_EXPORT
Definition: vtkIOXMLModule.h:15
vtkXMLUnstructuredGridReader::ReadPieceData
int ReadPieceData()
vtkXMLUnstructuredGridReader::ReadArrayForCells
virtual int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray)
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkXMLUnstructuredGridReader::SetupOutputData
void SetupOutputData()
vtkXMLUnstructuredGridReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkXMLUnstructuredGridReader::CellsOffset
unsigned long CellsOffset
Definition: vtkXMLUnstructuredGridReader.h:90
vtkXMLUnstructuredGridReader::GetDataSetName
const char * GetDataSetName()
vtkXMLUnstructuredGridReader::SetupNextPiece
void SetupNextPiece()
vtkXMLUnstructuredDataReader.h
vtkIOXMLModule.h
vtkXMLUnstructuredGridReader::CellsTimeStep
int CellsTimeStep
Definition: vtkXMLUnstructuredGridReader.h:89
vtkXMLUnstructuredGridReader::DestroyPieces
void DestroyPieces()
vtkXMLUnstructuredGridReader::ReadPiece
int ReadPiece(vtkXMLDataElement *ePiece)
vtkXMLUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput(int idx)
vtkXMLUnstructuredGridReader::SetupPieces
void SetupPieces(int numPieces)
vtkXMLUnstructuredDataReader
Superclass for unstructured data XML readers.
Definition: vtkXMLUnstructuredDataReader.h:37
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkXMLUnstructuredGridReader::SetupOutputTotals
void SetupOutputTotals()
vtkXMLUnstructuredGridReader::CellElements
vtkXMLDataElement ** CellElements
Definition: vtkXMLUnstructuredGridReader.h:86
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkXMLUnstructuredGridReader::GetOutput
vtkUnstructuredGrid * GetOutput()
vtkAbstractArray
Abstract superclass for all arrays.
Definition: vtkAbstractArray.h:65
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkXMLUnstructuredGridReader::StartCell
vtkIdType StartCell
Definition: vtkXMLUnstructuredGridReader.h:83
vtkXMLUnstructuredGridReader::~vtkXMLUnstructuredGridReader
~vtkXMLUnstructuredGridReader()
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:49
vtkXMLUnstructuredGridReader::New
static vtkXMLUnstructuredGridReader * New()
vtkXMLUnstructuredGridReader::NumberOfCells
vtkIdType * NumberOfCells
Definition: vtkXMLUnstructuredGridReader.h:87
vtkXMLUnstructuredGridReader::vtkXMLUnstructuredGridReader
vtkXMLUnstructuredGridReader()
vtkXMLUnstructuredGridReader::GetOutputUpdateExtent
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkXMLUnstructuredGridReader::GetNumberOfCellsInPiece
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
vtkXMLUnstructuredGridReader
Read VTK XML UnstructuredGrid files.
Definition: vtkXMLUnstructuredGridReader.h:44
vtkXMLUnstructuredGridReader::FillOutputPortInformation
virtual int FillOutputPortInformation(int, vtkInformation *)