VTK  9.3.20240318
vtkXMLStructuredGridReader.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
52 #ifndef vtkXMLStructuredGridReader_h
53 #define vtkXMLStructuredGridReader_h
54 
55 #include "vtkIOXMLModule.h" // For export macro
57 
58 VTK_ABI_NAMESPACE_BEGIN
59 class vtkStructuredGrid;
60 
62 {
63 public:
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
69 
75 
76 protected:
79 
80  const char* GetDataSetName() override;
81  void SetOutputExtent(int* extent) override;
82 
83  void SetupPieces(int numPieces) override;
84  void DestroyPieces() override;
85  void SetupOutputData() override;
86 
87  int ReadPiece(vtkXMLDataElement* ePiece) override;
88  int ReadPieceData() override;
90 
91  // The elements representing the points for each piece.
93 
94 private:
96  void operator=(const vtkXMLStructuredGridReader&) = delete;
97 };
98 
99 VTK_ABI_NAMESPACE_END
100 #endif
a simple class to control print indentation
Definition: vtkIndent.h:108
Store vtkAlgorithm input/output information.
topologically regular array of data
Represents an XML element and those nested inside.
Superclass for structured data XML readers.
Read VTK XML StructuredGrid files.
void SetupPieces(int numPieces) override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void DestroyPieces() override
int ReadPiece(vtkXMLDataElement *ePiece) override
static vtkXMLStructuredGridReader * New()
void SetOutputExtent(int *extent) override
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetupOutputData() override
Setup the output's data with allocation.
vtkStructuredGrid * GetOutput()
Get the reader's output.
const char * GetDataSetName() override
Get the name of the data set being read.
~vtkXMLStructuredGridReader() override
vtkStructuredGrid * GetOutput(int idx)
Get the reader's output.
int ReadPieceData() override
@ extent
Definition: vtkX3D.h:345