VTK  9.1.0
vtkAMRFlashReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkAMRFlashReader.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 =========================================================================*/
21#ifndef vtkAMRFlashReader_h
22#define vtkAMRFlashReader_h
23
24#include "vtkAMRBaseReader.h"
25#include "vtkIOAMRModule.h" // For export macro
26
29
30class VTKIOAMR_EXPORT vtkAMRFlashReader : public vtkAMRBaseReader
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
40 int GetNumberOfBlocks() override;
41
45 int GetNumberOfLevels() override;
46
50 void SetFileName(VTK_FILEPATH const char* fileName) override;
51
52protected:
55
59 void ReadMetaData() override;
60
64 int GetBlockLevel(const int blockIdx) override;
65
69 int FillMetaData() override;
70
74 vtkUniformGrid* GetAMRGrid(const int blockIdx) override;
75
79 void GetAMRGridData(const int blockIdx, vtkUniformGrid* block, const char* field) override;
80
84 void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid* vtkNotUsed(block),
85 const char* vtkNotUsed(field)) override
86 {
87 ;
88 }
89
93 void SetUpDataArraySelections() override;
94
95 bool IsReady;
96
97private:
98 vtkAMRFlashReader(const vtkAMRFlashReader&) = delete;
99 void operator=(const vtkAMRFlashReader&) = delete;
100
101 void ComputeStats(vtkFlashReaderInternal* internal, std::vector<int>& numBlocks, double min[3]);
102 vtkFlashReaderInternal* Internal;
103};
104
105#endif /* vtkAMRFlashReader_h */
An abstract class that encapsulates common functionality for all AMR readers.
static vtkAMRFlashReader * New()
vtkUniformGrid * GetAMRGrid(const int blockIdx) override
See vtkAMRBaseReader::GetAMRGrid.
void ReadMetaData() override
See vtkAMRBaseReader::ReadMetaData.
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) override
See vtkAMRBaseReader::GetAMRGridData.
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(const int blockIdx) override
See vtkAMRBaseReader::GetBlockLevel.
void SetFileName(VTK_FILEPATH const char *fileName) override
See vtkAMRBaseReader::SetFileName.
void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field) override
See vtkAMRBaseReader::GetAMRGridData.
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:113
hierarchical dataset of vtkUniformGrids
image data with blanking
@ field
Definition: vtkX3D.h:183
#define VTK_FILEPATH