VTK  9.3.1
vtkXMLPRectilinearGridReader.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 vtkXMLPRectilinearGridReader_h
21 #define vtkXMLPRectilinearGridReader_h
22 
23 #include "vtkIOXMLModule.h" // For export macro
25 
26 VTK_ABI_NAMESPACE_BEGIN
27 class vtkRectilinearGrid;
28 
30 {
31 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  vtkRectilinearGrid* GetOutput();
41  vtkRectilinearGrid* GetOutput(int idx);
43 
44 protected:
46  ~vtkXMLPRectilinearGridReader() override;
47 
48  vtkRectilinearGrid* GetPieceInput(int index);
49 
50  void SetupEmptyOutput() override;
51  const char* GetDataSetName() override;
52  void SetOutputExtent(int* extent) override;
53  void GetPieceInputExtent(int index, int* extent) override;
54  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
55  void SetupOutputData() override;
56  int ReadPieceData() override;
58  void CopySubCoordinates(
59  int* inBounds, int* outBounds, int* subBounds, vtkDataArray* inArray, vtkDataArray* outArray);
60  int FillOutputPortInformation(int, vtkInformation*) override;
61 
62  // The PCoordinates element with coordinate information.
64 
65 private:
67  void operator=(const vtkXMLPRectilinearGridReader&) = delete;
68 };
69 
70 VTK_ABI_NAMESPACE_END
71 #endif
virtual void SetOutputExtent(int *extent)=0
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it...
virtual void SetupEmptyOutput()=0
Setup the output with no data available.
Represents an XML element and those nested inside.
Store vtkAlgorithm input/output information.
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
Read PVTK XML RectilinearGrid files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
Superclass for parallel structured data XML readers.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
int ReadPieceData() override
Actually read the current piece data.
Superclass for VTK XML file readers.
static vtkAlgorithm * New()
virtual void GetPieceInputExtent(int index, int *extent)=0
void SetupOutputData() override
Initialize the output data.