Go to the documentation of this file.
32 #ifndef vtkXMLPTableReader_h
33 #define vtkXMLPTableReader_h
35 #include "vtkIOXMLModule.h"
int ReadPiece(vtkXMLDataElement *ePiece, int index)
Setup the piece reader at the given index.
const char * GetDataSetName() override
Return the type of the dataset being read.
Superclass for PVTK XML file readers.
vtkTable * GetOutputAsTable()
virtual vtkIdType GetNumberOfRowsInPiece(int piece)
Get the number of rows in the given piece.
int GetNumberOfRowArrays()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int, vtkInformation *) override
Fill the output port information objects for this algorithm.
int CanReadPiece(int index) override
Whether or not the current reader can read the current piece.
vtkIdType GetNumberOfRows()
Get the number of rows of the table.
A table, which contains similar-typed columns of data.
void SetupPieces(int numPieces) override
Setup the number of pieces to be read and allocate space accordingly.
vtkXMLTableReader * CreatePieceReader()
Create a reader according to the data to read.
vtkDataArraySelection * ColumnSelection
vtkTable * GetPieceInputAsTable(int piece)
void SetupUpdateExtent(int piece, int numberOfPieces)
Setup the extent for the parallel reader and the piece readers.
int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
int ReadPieceData(int index)
Read piece at the given index RowData.
Read PVTK XML Table files.
Store on/off settings for data arrays for a vtkSource.
void GetOutputUpdateExtent(int &piece, int &numberOfPieces)
Get the current piece index and the total number of piece in the dataset.
const char * GetRowArrayName(int index)
void SetupOutputInformation(vtkInformation *outInfo) override
Setup the output's information.
void SetupOutputTotals()
Initialize the total number of rows to be read.
void SetupOutputData() override
Initialize current output data: allocate arrays for RowData.
int UpdatePiece
The update request.
vtkIdType TotalNumberOfRows
void SetupNextPiece()
Initialize the index of the first row to be read in the next piece.
int ReadPieceData()
Actually read the current piece data.
int ColumnIsEnabled(vtkXMLDataElement *elementRowData)
Check whether the given array element is an enabled array.
a simple class to control print indentation
Read VTK XML Table files.
void SetColumnArrayStatus(const char *name, int status)
void PieceProgressCallback() override
Callback registered with the PieceProgressObserver.
void DestroyPieces() override
Delete all piece readers and related information.
void SetupEmptyOutput() override
Initialize current output.
Represents an XML element and those nested inside.
const char * GetColumnArrayName(int index)
Get the name of the column with the given index in the input.
vtkTable * GetOutput()
Get the reader's output.
int GetNumberOfColumnArrays()
Get the number of columns arrays available in the input.
~vtkXMLPTableReader() override
int StartPiece
The range of pieces from the file that will form the UpdatePiece.
int GetColumnArrayStatus(const char *name)
Get/Set whether the column array with the given name is to be read.
static vtkXMLPTableReader * New()
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
Pipeline execute data driver.
int ReadPiece(vtkXMLDataElement *ePiece) override
Setup the current piece reader.
void ReadXMLData() override
Setup the readers and then read the input data.
void CopyOutputInformation(vtkInformation *outInfo, int port) override
For the specified port, copy the information this reader sets up in SetupOutputInformation to outInfo...
vtkXMLDataElement * PRowElement
The PRowData element representations.
vtkXMLTableReader ** PieceReaders
vtkTable * GetOutput(int idx)