25 #ifndef vtkXMLUniformGridAMRReader_h
26 #define vtkXMLUniformGridAMRReader_h
28 #include "vtkIOXMLModule.h"
34 VTK_ABI_NAMESPACE_BEGIN
55 vtkSetMacro(MaximumLevelsToReadByDefault,
unsigned int);
56 vtkGetMacro(MaximumLevelsToReadByDefault,
unsigned int);
124 const char* filePath,
unsigned int& dataSetIndex)
override;
130 bool HasBlockRequests =
true;
131 unsigned int MaximumLevelsToReadByDefault = 0;
132 std::map<unsigned int, unsigned int> CompositeIdToLevel;
137 bool AddSelector(
const char* vtkNotUsed(selector))
override {
return false; }
139 void SetSelector(
const char* vtkNotUsed(selector))
override {}
141 const char*
GetSelector(
int vtkNotUsed(
index))
const override {
return nullptr; }
143 char* OutputDataType =
nullptr;
144 vtkSetStringMacro(OutputDataType);
147 VTK_ABI_NAMESPACE_END
virtual const char * GetSelector(int index) const
API to access selectors.
void ReadComposite(vtkXMLDataElement *element, vtkCompositeDataSet *composite, const char *filePath, unsigned int &dataSetIndex) override
virtual bool AddSelector(const char *selector)
API to set selectors.
Represents an XML element and those nested inside.
virtual void ClearSelectors()
API to set selectors.
const char * GetDataSetName() override
Get the name of the data set being read.
virtual int GetNumberOfSelectors() const
API to access selectors.
virtual void SyncCompositeDataArraySelections(vtkCompositeDataSet *composite, vtkXMLDataElement *element, const std::string &filePath)=0
Recursively synchronize the data array selection of the reader for the file specified in the XML elem...
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int GetAssemblyTag()
Whenever the assembly is changed, this tag gets changed.
virtual int ReadVTKFile(vtkXMLDataElement *eVTKFile)
Read the top-level element from the file.
abstract superclass for composite (multi-block or AMR) datasets
a simple class to control print indentation
virtual bool CanReadDataObject(vtkDataObject *dataObject)
Given the data object class, return whether it is allowed.
virtual void SetSelector(const char *selector)
API to set selectors.
virtual int CanReadFileWithDataType(const char *dsname)
This method is used by CanReadFile() to check if the reader can read an XML with the primary element ...
virtual vtkDataObject * ReadDataObject(vtkXMLDataElement *xmlElem, const char *filePath)
void CreateMetaData(vtkXMLDataElement *ePrimary) override
Create the meta-data from the partitioned dataset collection from the file.
a multi-resolution dataset based on vtkCartesianGrid allowing overlaps
Reader for partitioned dataset collections.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
hierarchical representation to use with vtkPartitionedDataSetCollection
static vtkXMLPartitionedDataSetCollectionReader * New()
general representation of visualization data
virtual bool IsBlockSelected(unsigned int compositeIndex)
Given the composite id, this method tells if the block should be read.