48#ifndef vtkXMLCompositeDataReader_h
49#define vtkXMLCompositeDataReader_h
51#include "vtkIOXMLModule.h"
57struct vtkXMLCompositeDataReaderInternals;
86 vtkSetClampMacro(PieceDistribution,
int,
Block, Interleave);
87 vtkGetMacro(PieceDistribution,
int);
142 const char* filePath,
unsigned int& dataSetIndex) = 0;
162 unsigned int datasetIndex,
unsigned int pieceIndex = 0,
unsigned int numPieces = 0);
170 const std::set<std::string>& exclusions = std::set<std::string>());
182 static int GetPieceAssignmentForBlockStrategy(
183 unsigned int datasetIndex,
unsigned int numDatasets,
int numPieces);
184 static int GetPieceAssignmentForInterleaveStrategy(
185 unsigned int datasetIndex,
unsigned int numDatasets,
int numPieces);
188 int PieceDistribution;
190 vtkXMLCompositeDataReaderInternals* Internal;
abstract superclass for composite (multi-block or AMR) datasets
general representation of visualization data
abstract class to specify dataset behavior
Superclass for all pipeline executives in VTK.
a simple class to control print indentation
Reader for multi-group datasets.
std::string GetFilePath()
vtkXMLDataElement * GetPrimaryElement()
vtkCompositeDataSet * GetOutput(int)
Get the output data object for a port on this algorithm.
void AddChild(vtkCompositeDataSet *parent, vtkDataObject *child, vtkXMLDataElement *childXML)
int FillOutputPortInformation(int, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkCompositeDataSet * GetOutput()
Get the output data object for a port on this algorithm.
void SetupEmptyOutput() override
virtual void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex)=0
virtual vtkDataObject * ReadDataObject(vtkXMLDataElement *xmlElem, const char *filePath)
int ShouldReadDataSet(unsigned int datasetIndex, unsigned int pieceIndex=0, unsigned int numPieces=0)
Given the inorder index for a leaf node, this method tells if the current process should read the dat...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static unsigned int CountNestedElements(vtkXMLDataElement *element, const std::string &tagName, const std::set< std::string > &exclusions=std::set< std::string >())
Convenience method to count all nested elements with the given tag name.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
virtual vtkDataSet * ReadDataset(vtkXMLDataElement *xmlElem, const char *filePath)
const char * GetDataSetName() override
void ReadXMLData() override
void SyncDataArraySelections(vtkXMLReader *accum, vtkXMLDataElement *xmlElem, const std::string &filePath)
int ReadPrimaryElement(vtkXMLDataElement *ePrimary) override
std::string GetFileNameFromXML(vtkXMLDataElement *xmlElem, const std::string &filePath)
vtkXMLReader * GetReaderOfType(const char *type)
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
vtkXMLReader * GetReaderForFile(const std::string &filename)
~vtkXMLCompositeDataReader() override
void SetFileName(VTK_FILEPATH const char *) override
vtkXMLCompositeDataReader()
Represents an XML element and those nested inside.
Superclass for VTK's XML format readers.