20 #ifndef vtkAMRBaseReader_h
21 #define vtkAMRBaseReader_h
23 #include "vtkIOAMRModule.h"
74 vtkSetMacro(MaxLevel,
int);
90 int GetNumberOfPointArrays();
91 int GetNumberOfCellArrays();
99 const char* GetPointArrayName(
int index);
100 const char* GetCellArrayName(
int index);
108 int GetPointArrayStatus(
const char*
name);
109 int GetCellArrayStatus(
const char*
name);
110 void SetPointArrayStatus(
const char*
name,
int status);
111 void SetCellArrayStatus(
const char*
name,
int status);
119 vtkGetFilePathMacro(FileName);
120 virtual void SetFileName(
VTK_FILEPATH const char* fileName) = 0;
126 virtual int GetNumberOfBlocks() = 0;
131 virtual int GetNumberOfLevels() = 0;
146 bool IsBlockMine(
const int blockIdx);
173 void GetAMRData(
const int blockIdx,
vtkUniformGrid* block,
const char* fieldName);
178 void GetAMRPointData(
const int blockIdx,
vtkUniformGrid* block,
const char* fieldName);
203 int GetBlockProcessId(
const int blockIdx);
217 virtual void ReadMetaData() = 0;
222 virtual int GetBlockLevel(
const int blockIdx) = 0;
229 virtual int FillMetaData() = 0;
239 virtual void GetAMRGridData(
const int blockIdx,
vtkUniformGrid* block,
const char*
field) = 0;
244 virtual void GetAMRGridPointData(
268 void InitializeArraySelections();
273 virtual void SetUpDataArraySelections() = 0;
278 static void SelectionModifiedCallback(
279 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
A base class for all algorithms that take as input vtkOverlappingAMR and produce vtkOverlappingAMR.
abstract base class for most VTK objects
vtkCallbackCommand * SelectionObserver
vtkDataArraySelection * CellDataArraySelection
vtkMultiProcessController * Controller
bool IsCachingEnabled() const
Set/Get Reader caching property.
std::vector< int > BlockMap
vtkDataArraySelection * PointDataArraySelection
supports function callbacks
A concrete implementation of vtkObject that provides functionality for caching AMR blocks...
a simple class to control print indentation
Store on/off settings for data arrays, etc.
abstract superclass for arrays of numeric data
vtkOverlappingAMR * Metadata
vtkTypeBool EnableCaching
hierarchical dataset of vtkUniformGrids
int FillOutputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
vtkAMRDataSetCache * Cache
An abstract class that encapsulates common functionality for all AMR readers.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Multiprocessing communication superclass.