VTK  9.3.1
vtkXMLRectilinearGridReader.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
23 #ifndef vtkXMLRectilinearGridReader_h
24 #define vtkXMLRectilinearGridReader_h
25 
26 #include "vtkIOXMLModule.h" // For export macro
28 
29 VTK_ABI_NAMESPACE_BEGIN
30 class vtkRectilinearGrid;
31 
33 {
34 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
40 
43  vtkRectilinearGrid* GetOutput();
44  vtkRectilinearGrid* GetOutput(int idx);
46 
47 protected:
49  ~vtkXMLRectilinearGridReader() override;
50 
51  const char* GetDataSetName() override;
52  void SetOutputExtent(int* extent) override;
53 
54  void SetupPieces(int numPieces) override;
55  void DestroyPieces() override;
56  void SetupOutputData() override;
57  int ReadPiece(vtkXMLDataElement* ePiece) override;
58  int ReadPieceData() override;
59  int ReadSubCoordinates(
60  int* inBounds, int* outBounds, int* subBounds, vtkXMLDataElement* da, vtkDataArray* array);
61  int FillOutputPortInformation(int, vtkInformation*) override;
62 
63  // The elements representing the coordinate arrays for each piece.
65 
66 private:
68  void operator=(const vtkXMLRectilinearGridReader&) = delete;
69 };
70 
71 VTK_ABI_NAMESPACE_END
72 #endif
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
Represents an XML element and those nested inside.
virtual void SetOutputExtent(int *extent)=0
void DestroyPieces() override
Store vtkAlgorithm input/output information.
Superclass for structured data XML readers.
int ReadPiece(vtkXMLDataElement *ePiece) override
Read VTK XML RectilinearGrid files.
void SetupPieces(int numPieces) override
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
void SetupOutputData() override
Setup the output's data with allocation.
abstract superclass for arrays of numeric data
Definition: vtkDataArray.h:44
static vtkAlgorithm * New()
virtual int ReadPieceData()