22 #ifndef vtkAMRBaseReader_h 23 #define vtkAMRBaseReader_h 25 #include "vtkIOAMRModule.h" 63 return( (this->EnableCaching)?
true:
false);
80 vtkSetMacro( MaxLevel,
int);
96 int GetNumberOfPointArrays();
97 int GetNumberOfCellArrays();
105 const char* GetPointArrayName(
int index);
106 const char* GetCellArrayName(
int index);
114 int GetPointArrayStatus(
const char*
name);
115 int GetCellArrayStatus(
const char* name);
116 void SetPointArrayStatus(
const char* name,
int status);
117 void SetCellArrayStatus(
const char* name,
int status);
125 vtkGetStringMacro( FileName );
126 virtual void SetFileName(
const char *fileName ) = 0;
132 virtual int GetNumberOfBlocks() = 0;
137 virtual int GetNumberOfLevels() = 0;
152 bool IsBlockMine(
const int blockIdx );
180 const int blockIdx,
vtkUniformGrid *block,
const char *fieldName );
186 void GetAMRPointData(
187 const int blockIdx,
vtkUniformGrid *block,
const char *fieldName );
212 int GetBlockProcessId(
const int blockIdx );
226 virtual void ReadMetaData() = 0;
231 virtual int GetBlockLevel(
const int blockIdx ) = 0;
238 virtual int FillMetaData( ) = 0;
248 virtual void GetAMRGridData(
254 virtual void GetAMRGridPointData(
255 const int blockIdx,
vtkUniformGrid *block,
const char *field ) = 0;
282 void InitializeArraySelections();
287 virtual void SetUpDataArraySelections() = 0;
292 static void SelectionModifiedCallback(
293 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 for a vtkSource.
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.