21 #ifndef vtkXMLCompositeDataReader_h
22 #define vtkXMLCompositeDataReader_h
24 #include "vtkIOXMLModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
31 struct vtkXMLCompositeDataReaderInternals;
37 VTK_ABI_NAMESPACE_BEGIN
62 vtkSetClampMacro(PieceDistribution,
int, Block, Interleave);
63 vtkGetMacro(PieceDistribution,
int);
108 void SyncDataArraySelections(
114 const char* filePath,
unsigned int& dataSetIndex) = 0;
127 virtual bool ReaderSetFileNameOrData(
vtkXMLReader* reader,
const char* fileName);
138 int ShouldReadDataSet(
139 unsigned int datasetIndex,
unsigned int pieceIndex = 0,
unsigned int numPieces = 0);
147 const std::set<std::string>& exclusions = std::set<std::string>());
166 virtual void SyncCompositeDataArraySelections(
181 static int GetPieceAssignmentForBlockStrategy(
182 unsigned int datasetIndex,
unsigned int numDatasets,
int numPieces);
183 static int GetPieceAssignmentForInterleaveStrategy(
184 unsigned int datasetIndex,
unsigned int numDatasets,
int numPieces);
187 int PieceDistribution;
189 vtkXMLCompositeDataReaderInternals* Internal;
192 VTK_ABI_NAMESPACE_END
virtual const char * GetDataSetName()=0
Get the name of the data set being read.
virtual void SetupEmptyOutput()=0
Setup the output with no data available.
Represents an XML element and those nested inside.
virtual vtkExecutive * CreateDefaultExecutive()
Create a default executive.
abstract class to specify dataset behavior
Reader for multi-group datasets.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual void PrepareToCreateMetaData(vtkXMLDataElement *ePrimary)
Prepare to create the meta-data from the composite dataset from the file.
virtual void ReadXMLData()
Pipeline execution methods to be defined by subclass.
Superclass for all pipeline executives in VTK.
abstract superclass for composite (multi-block or AMR) datasets
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
virtual int ReadPrimaryElement(vtkXMLDataElement *ePrimary)
Read the primary element from the file.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
general representation of visualization data
Superclass for VTK's XML format readers.
vtkSmartPointer< vtkCompositeDataSet > Metadata