25 #ifndef vtkAMReXGridReaderInternal_h 26 #define vtkAMReXGridReaderInternal_h 70 const long*
format()
const&;
72 const int*
order()
const&;
108 std::vector<std::vector<std::vector<std::vector<double> > > >
levelCells;
115 void PrintSelf(std::ostream& os,
vtkIndent indent);
116 void PrintSelfGenericHeader(std::ostream& os,
vtkIndent indent);
118 bool ParseGenericHeader(
const std::string& headerData);
138 NoFabHeaderMinMax_v1 = 3,
140 NoFabHeaderFAMinMax_v1 = 4
172 void PrintSelf(std::ostream& os,
vtkIndent indent);
173 void PrintSelfLevelHeader(std::ostream& os,
vtkIndent indent);
174 bool Parse(
int _level,
int _dim,
const std::string& headerData);
175 bool ParseLevelHeader(
int _level,
int _dim,
const std::string& headerData);
191 void DestroyHeader();
192 void DestroyLevelHeader();
193 void PrintSelf(std::ostream& os,
vtkIndent indent);
194 void SetFileName(
char* fName);
198 bool ReadLevelHeader();
199 int GetNumberOfLevels();
200 int GetBlockLevel(
const int blockIdx);
201 int GetNumberOfBlocks();
202 int GetBlockIndexWithinLevel(
int blockIdx,
int level);
203 void GetBlockAttribute(
const char* attribute,
int blockIdx,
vtkDataSet* pDataSet);
204 int GetOffsetOfAttribute(
const char* attribute);
205 void ReadFAB(std::istream& is);
206 int ReadVersion(std::istream& is);
207 void ReadOrder(std::istream& is, std::vector<int>& ar);
208 void PrintOrder(std::vector<int>& ar);
209 void ReadFormat(std::istream& is, std::vector<long>& ar);
210 void PrintFormat(std::vector<long>& ar);
212 int ReadBoxArray(std::istream& is,
int* boxArray,
int* boxArrayDim);
213 void PrintBoxArray(
int* boxArray);
214 int ReadNumberOfAttributes(std::istream& is);
215 void ReadBlockAttribute(std::istream& is,
int numberOfPoints,
int size,
char* buffer);
219 void* out,
const void* in,
long nitems,
const int* outord,
const int* inord,
int REALSIZE);
227 friend class vtkAMReXGridLeveHeader;
const int * order() const &
const long * format() const &
abstract class to specify dataset behavior
const std::vector< int > & orderarray() const &
Consists of the low-level AMReX Reader used by the vtkAMReXGridReader.
a simple class to control print indentation
vtkAMReXGridHeader * Header
const std::vector< long > & formatarray() const &
std::vector< vtkAMReXGridLevelHeader * > LevelHeader
bool operator==(const RealDescriptor &rd) const
VTKACCELERATORSVTKM_EXPORT vtkm::cont::Field Convert(vtkDataArray *input, int association)