VTK  9.0.1
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 
47  vtkStructuredGrid* GetOutput();
48 
52  vtkStructuredGrid* GetOutput(int idx);
53 
54 protected:
56  ~vtkXMLPStructuredGridReader() override;
57 
58  vtkStructuredGrid* GetPieceInput(int index);
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;
68  int FillOutputPortInformation(int, vtkInformation*) override;
69 
70  // The PPoints element with point information.
72 
73 private:
75  void operator=(const vtkXMLPStructuredGridReader&) = delete;
76 };
77 
78 #endif
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:57
vtkXMLPStructuredDataReader::ReadPieceData
int ReadPieceData() override
Actually read the current piece data.
vtkXMLDataReader
Superclass for VTK XML file readers.
Definition: vtkXMLDataReader.h:35
vtkXMLPStructuredGridReader::PPointsElement
vtkXMLDataElement * PPointsElement
Definition: vtkXMLPStructuredGridReader.h:71
vtkXMLPStructuredDataReader
Superclass for parallel structured data XML readers.
Definition: vtkXMLPStructuredDataReader.h:36
vtkXMLPDataReader::CreatePieceReader
virtual vtkXMLDataReader * CreatePieceReader()=0
Create a reader according to the data to read.
vtkXMLPStructuredDataReader::GetPieceInputExtent
virtual void GetPieceInputExtent(int index, int *extent)=0
vtkXMLReader::SetupEmptyOutput
virtual void SetupEmptyOutput()=0
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkXMLPStructuredDataReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkXMLPStructuredDataReader::SetOutputExtent
virtual void SetOutputExtent(int *extent)=0
vtkXMLPStructuredDataReader::SetupOutputData
void SetupOutputData() override
Initialize the output data.
vtkXMLReader::GetDataSetName
virtual const char * GetDataSetName()=0
vtkXMLDataElement
Represents an XML element and those nested inside.
Definition: vtkXMLDataElement.h:36
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkXMLPStructuredDataReader::ReadPrimaryElement
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it.
vtkX3D::extent
@ extent
Definition: vtkX3D.h:351
vtkXMLPStructuredGridReader
Read PVTK XML StructuredGrid files.
Definition: vtkXMLPStructuredGridReader.h:37
vtkXMLPStructuredDataReader.h
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.