VTK  9.7.20261008
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
19
20#ifndef vtkXMLPRectilinearGridReader_h
21#define vtkXMLPRectilinearGridReader_h
22
23#include "vtkIOXMLModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
29
32{
33public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
45
46protected:
49
51
52 void SetupEmptyOutput() override;
53 const char* GetDataSetName() override;
54 void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override;
55 void GetPieceInputExtent(int index, int extent[6]) override;
56 int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
57 void SetupOutputData() override;
58 int ReadPieceData() override;
61 int* inBounds, int* outBounds, int* subBounds, vtkDataArray* inArray, vtkDataArray* outArray);
63
64 // The PCoordinates element with coordinate information.
66
67private:
69 void operator=(const vtkXMLPRectilinearGridReader&) = delete;
70};
71
72VTK_ABI_NAMESPACE_END
73#endif
int idx
Definition HexCnBasis.h:79
a simple class to control print indentation
Definition vtkIndent.h:108
Store vtkAlgorithm input/output information.
a dataset that is topologically regular with variable spacing in the three coordinate directions
Represents an XML element and those nested inside.
Superclass for VTK XML file readers.
vtkRectilinearGrid * GetPieceInput(int index)
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
void SetupEmptyOutput() override
Setup the output with no data available.
void GetPieceInputExtent(int index, int extent[6]) override
vtkRectilinearGrid * GetOutput()
Get the reader's output.
void CopySubCoordinates(int *inBounds, int *outBounds, int *subBounds, vtkDataArray *inArray, vtkDataArray *outArray)
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it.
void SetupOutputData() override
Initialize the output data.
static vtkXMLPRectilinearGridReader * New()
int ReadPieceData() override
Actually read the current piece data.
void SetOutputExtent(VTK_FUTURE_CONST int extent[6]) override
const char * GetDataSetName() override
Get the name of the data set being read.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRectilinearGrid * GetOutput(int idx)
Get the reader's output.
vtkXMLDataReader * CreatePieceReader() override
Create a reader according to the data to read.
~vtkXMLPRectilinearGridReader() override
#define vtkDataArray
#define VTK_MARSHALAUTO