VTK  9.4.20241226
vtkAMRFlashReader.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
9#ifndef vtkAMRFlashReader_h
10#define vtkAMRFlashReader_h
11
12#include "vtkAMRBaseReader.h"
13#include "vtkIOAMRModule.h" // For export macro
14
15VTK_ABI_NAMESPACE_BEGIN
18
19class VTKIOAMR_EXPORT vtkAMRFlashReader : public vtkAMRBaseReader
20{
21public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
29 int GetNumberOfBlocks() override;
30
34 int GetNumberOfLevels() override;
35
39 void SetFileName(VTK_FILEPATH const char* fileName) override;
40
41protected:
44
48 void ReadMetaData() override;
49
53 int GetBlockLevel(int blockIdx) override;
54
58 int FillMetaData() override;
59
63 vtkUniformGrid* GetAMRGrid(int blockIdx) override;
64
68 void GetAMRGridData(int blockIdx, vtkUniformGrid* block, const char* field) override;
69
73 void GetAMRGridPointData(int vtkNotUsed(blockIdx), vtkUniformGrid* vtkNotUsed(block),
74 const char* vtkNotUsed(field)) override
75 {
76 }
77
81 void SetUpDataArraySelections() override;
82
83 bool IsReady;
84
85private:
86 vtkAMRFlashReader(const vtkAMRFlashReader&) = delete;
87 void operator=(const vtkAMRFlashReader&) = delete;
88
89 void ComputeStats(vtkFlashReaderInternal* internal, std::vector<int>& numBlocks, double min[3]);
90 vtkFlashReaderInternal* Internal;
91};
92
93VTK_ABI_NAMESPACE_END
94#endif /* vtkAMRFlashReader_h */
An abstract class that encapsulates common functionality for all AMR readers.
static vtkAMRFlashReader * New()
void GetAMRGridData(int blockIdx, vtkUniformGrid *block, const char *field) override
See vtkAMRBaseReader::GetAMRGridData.
vtkUniformGrid * GetAMRGrid(int blockIdx) override
See vtkAMRBaseReader::GetAMRGrid.
void ReadMetaData() override
See vtkAMRBaseReader::ReadMetaData.
int FillMetaData() override
See vtkAMRBaseReader::FillMetaData.
int GetNumberOfBlocks() override
See vtkAMRBaseReader::GetNumberOfBlocks.
int GetNumberOfLevels() override
See vtkAMRBaseReader::GetNumberOfLevels.
~vtkAMRFlashReader() override
void SetUpDataArraySelections() override
See vtkAMRBaseReader::SetUpDataArraySelections.
int GetBlockLevel(int blockIdx) override
See vtkAMRBaseReader::GetBlockLevel.
void GetAMRGridPointData(int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
void SetFileName(VTK_FILEPATH const char *fileName) override
See vtkAMRBaseReader::SetFileName.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition vtkIndent.h:108
hierarchical dataset of vtkUniformGrids
image data with blanking
#define VTK_FILEPATH