VTK  9.0.2
vtkXMLPStructuredGridReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkXMLPStructuredGridReader.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef vtkXMLPStructuredGridReader_h
30 #define vtkXMLPStructuredGridReader_h
31 
32 #include "vtkIOXMLModule.h" // For export macro
34 
35 class vtkStructuredGrid;
36 
38 {
39 public:
41  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
48 
53 
54 protected:
57 
59 
60  void SetupEmptyOutput() override;
61  const char* GetDataSetName() override;
62  void SetOutputExtent(int* extent) override;
63  void GetPieceInputExtent(int index, int* extent) override;
64  int ReadPrimaryElement(vtkXMLDataElement* ePrimary) override;
65  void SetupOutputData() override;
66  int ReadPieceData() override;
69 
70  // The PPoints element with point information.
72 
73 private:
75  void operator=(const vtkXMLPStructuredGridReader&) = delete;
76 };
77 
78 #endif
a simple class to control print indentation
Definition: vtkIndent.h:34
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
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
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:351
@ index
Definition: vtkX3D.h:252