VTK
vtkXMLPolyDataReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkXMLPolyDataReader.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 vtkXMLPolyDataReader_h
36#define vtkXMLPolyDataReader_h
37
38#include "vtkIOXMLModule.h" // For export macro
40
41class vtkPolyData;
42
44{
45public:
47 void PrintSelf(ostream& os, vtkIndent indent);
49
51
57
59
67
68protected:
71
72 const char* GetDataSetName();
73 void GetOutputUpdateExtent(int& piece, int& numberOfPieces, int& ghostLevel);
76 void SetupPieces(int numPieces);
78
82
83 // Read a data array whose tuples coorrespond to cells.
85 vtkAbstractArray* outArray);
86
87 // Get the number of cells in the given piece. Valid after
88 // UpdateInformation.
90
92
93 // The size of the UpdatePiece.
102
103 // The cell elements for each piece.
112
113 // For TimeStep support
115 unsigned long VertsOffset;
117 unsigned long LinesOffset;
119 unsigned long StripsOffset;
121 unsigned long PolysOffset;
122
123private:
124 vtkXMLPolyDataReader(const vtkXMLPolyDataReader&) VTK_DELETE_FUNCTION;
125 void operator=(const vtkXMLPolyDataReader&) VTK_DELETE_FUNCTION;
126};
127
128#endif
Abstract superclass for all arrays.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
Represents an XML element and those nested inside.
Read VTK XML PolyData files.
vtkXMLDataElement ** LineElements
virtual vtkIdType GetNumberOfVerts()
Get the number of verts/lines/strips/polys in the output.
vtkPolyData * GetOutput(int idx)
void GetOutputUpdateExtent(int &piece, int &numberOfPieces, int &ghostLevel)
int ReadPiece(vtkXMLDataElement *ePiece)
void SetupPieces(int numPieces)
virtual vtkIdType GetNumberOfStrips()
virtual vtkIdType GetNumberOfLines()
vtkXMLDataElement ** StripElements
vtkXMLDataElement ** PolyElements
virtual int FillOutputPortInformation(int, vtkInformation *)
Fill the output port information objects for this algorithm.
virtual vtkIdType GetNumberOfCellsInPiece(int piece)
virtual vtkIdType GetNumberOfPolys()
vtkXMLDataElement ** VertElements
const char * GetDataSetName()
static vtkXMLPolyDataReader * New()
virtual int ReadArrayForCells(vtkXMLDataElement *da, vtkAbstractArray *outArray)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyData * GetOutput()
Get the reader's output.
Superclass for unstructured data XML readers.
int vtkIdType
Definition: vtkType.h:287