VTK  9.3.0
vtkXMLPStructuredGridReader.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
20 #ifndef vtkXMLPStructuredGridReader_h
21 #define vtkXMLPStructuredGridReader_h
22 
23 #include "vtkIOXMLModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkStructuredGrid;
28 
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
40 
45 
46 protected:
49 
51 
52  void SetupEmptyOutput() override;
53  const char* GetDataSetName() override;
54  void SetOutputExtent(int* extent) override;
55  void GetPieceInputExtent(int index, int* extent) override;
56  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
57  void SetupOutputData() override;
58  int ReadPieceData() override;
61 
62  // The PPoints element with point information.
64 
65 private:
67  void operator=(const vtkXMLPStructuredGridReader&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
a simple class to control print indentation
Definition: vtkIndent.h:38
Store vtkAlgorithm input/output information.
topologically regular array of data
Represents an XML element and those nested inside.
Superclass for VTK XML file readers.
Superclass for parallel structured data XML readers.
Read PVTK XML StructuredGrid files.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it.
vtkStructuredGrid * GetPieceInput(int index)
~vtkXMLPStructuredGridReader() override
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
const char * GetDataSetName() override
Get the name of the data set being read.
int ReadPieceData() override
Actually read the current piece data.
vtkStructuredGrid * GetOutput(int idx)
Needed for ParaView.
void GetPieceInputExtent(int index, int *extent) override
void SetOutputExtent(int *extent) override
vtkStructuredGrid * GetOutput()
Get the reader's output.
static vtkXMLPStructuredGridReader * New()
void SetupEmptyOutput() override
Setup the output with no data available.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetupOutputData() override
Initialize the output data.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
@ extent
Definition: vtkX3D.h:345
@ index
Definition: vtkX3D.h:246