27 #ifndef vtkXMLPStructuredDataReader_h
28 #define vtkXMLPStructuredDataReader_h
30 #include "vtkIOXMLModule.h"
56 virtual void SetOutputExtent(
int*
extent) = 0;
57 virtual void GetPieceInputExtent(
int index,
int*
extent) = 0;
69 void CopySubExtent(
int* inExtent,
int* inDimensions,
vtkIdType* inIncrements,
int* outExtent,
70 int* outDimensions,
vtkIdType* outIncrements,
int* subExtent,
int* subDimensions,
72 int ComputePieceSubExtents();
78 int PointDimensions[3];
80 int CellDimensions[3];
85 int SubPointDimensions[3];
86 int SubCellDimensions[3];
87 int SubPieceExtent[6];
88 int SubPiecePointDimensions[3];
90 int SubPieceCellDimensions[3];
virtual vtkIdType GetNumberOfPoints()=0
void DestroyPieces() override
Delete all piece readers and related information.
Represents an XML element and those nested inside.
Abstract superclass for all arrays.
Superclass for structured data XML readers.
virtual vtkIdType GetNumberOfCells()=0
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int ReadPiece(vtkXMLDataElement *ePiece) override
Setup the current piece reader.
virtual void ReadXMLData()
virtual void CopyArrayForCells(vtkAbstractArray *inArray, vtkAbstractArray *outArray)=0
virtual void CopyArrayForPoints(vtkAbstractArray *inArray, vtkAbstractArray *outArray)=0
Split an extent across other extents.
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Read the information relative to the dataset and allocate the needed structures according to it...
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
a simple class to control print indentation
Superclass for parallel structured data XML readers.
Superclass for PVTK XML file readers that read vtkDataSets.
void SetupPieces(int numPieces) override
Setup the number of pieces to be read and allocate space accordingly.
virtual int ReadPieceData()
Actually read the current piece data.
void SetupOutputData() override
Initialize the output data.
vtkExtentSplitter * ExtentSplitter
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.