VTK  9.1.0
vtkAMReXGridReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAMReXGridReader.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
22#ifndef vtkAMReXGridReader_h
23#define vtkAMReXGridReader_h
24
25#include "vtkAMRBaseReader.h"
26#include "vtkIOAMRModule.h" // For export macro
27#include "vtkNew.h" // for vtkNew
28
29#include <string> // for std::string.
30#include <vector> // for std::vector.
31
34
35class VTKIOAMR_EXPORT vtkAMReXGridReader : public vtkAMRBaseReader
36{
37public:
40 void PrintSelf(ostream& os, vtkIndent indent) override;
41
45 int GetNumberOfBlocks() override;
46
50 int GetNumberOfLevels() override;
51
55 void SetFileName(VTK_FILEPATH const char* fileName) override;
56
57protected:
60
64 void ReadMetaData() override;
65
69 int GetBlockLevel(const int blockIdx) override;
70
78 int GetLevelBlockID(const int blockIdx);
79
83 int FillMetaData() override;
84
88 vtkUniformGrid* GetAMRGrid(const int blockIdx) override;
89
93 void GetAMRGridData(const int blockIdx, vtkUniformGrid* block, const char* field) override;
94
98 void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid* vtkNotUsed(block),
99 const char* vtkNotUsed(field)) override
100 {
101 ;
102 }
103
108
111
112private:
113 vtkAMReXGridReader(const vtkAMReXGridReader&) = delete;
114 void operator=(const vtkAMReXGridReader&) = delete;
115
116 void ComputeStats(
117 vtkAMReXGridReaderInternal* internal, std::vector<int>& numBlocks, double min[3]);
119};
120
121#endif
An abstract class that encapsulates common functionality for all AMR readers.
Consists of the low-level AMReX Reader used by the vtkAMReXGridReader.
reader for AMReX plotfiles grid data.
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
void ReadMetaData() override
See vtkAMRBaseReader::ReadMetaData.
int GetNumberOfLevels() override
See vtkAMRBaseReader::GetNumberOfLevels.
vtkUniformGrid * GetAMRGrid(const int blockIdx) override
See vtkAMRBaseReader::GetAMRGrid.
int GetLevelBlockID(const int blockIdx)
GetLevelBlockID.
void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field) override
See vtkAMRBaseReader::GetAMRGridData.
int GetNumberOfBlocks() override
See vtkAMRBaseReader::GetNumberOfBlocks.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetUpDataArraySelections() override
See vtkAMRBaseReader::SetUpDataArraySelections.
~vtkAMReXGridReader() override
int GetBlockLevel(const int blockIdx) override
See vtkAMRBaseReader::GetBlockLevel.
int FillMetaData() override
See vtkAMRBaseReader::FillMetaData.
void SetFileName(VTK_FILEPATH const char *fileName) override
See vtkAMRBaseReader::SetFileName.
static vtkAMReXGridReader * New()
a simple class to control print indentation
Definition: vtkIndent.h:113
hierarchical dataset of vtkUniformGrids
image data with blanking
#define VTK_FILEPATH