VTK
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  =========================================================================*/
22 #ifndef VTKAMRFLASHREADER_H_
23 #define VTKAMRFLASHREADER_H_
24 
25 #include "vtkIOAMRModule.h" // For export macro
26 #include "vtkAMRBaseReader.h"
27 
28 class vtkOverlappingAMR;
30 
32 {
33 public:
34  static vtkAMRFlashReader* New();
36  void PrintSelf(ostream &os, vtkIndent indent );
37 
39  int GetNumberOfBlocks();
40 
42  int GetNumberOfLevels();
43 
45  void SetFileName( const char* fileName );
46 
47 protected:
50 
52  void ReadMetaData();
53 
55  int GetBlockLevel( const int blockIdx );
56 
58  int FillMetaData( );
59 
61  vtkUniformGrid* GetAMRGrid( const int blockIdx );
62 
64 
65  void GetAMRGridData(
66  const int blockIdx, vtkUniformGrid *block, const char *field);
68 
70 
72  const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field)) {;}
74 
77 
78  bool IsReady;
79 
80 private:
81  vtkAMRFlashReader( const vtkAMRFlashReader& ); // Not implemented
82  void operator=(const vtkAMRFlashReader& ); // Not implemented
83 
84  void ComputeStats(vtkFlashReaderInternal* internal, std::vector<int>& numBlocks, double min[3]);
85  vtkFlashReaderInternal *Internal;
86 };
87 
88 #endif /* VTKAMRFLASHREADER_H_ */
virtual vtkUniformGrid * GetAMRGrid(const int blockIdx)=0
#define VTKIOAMR_EXPORT
virtual int GetNumberOfBlocks()=0
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field))
virtual void ReadMetaData()=0
virtual int GetNumberOfLevels()=0
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
virtual void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field)=0
virtual int GetBlockLevel(const int blockIdx)=0
image data with blanking
hierarchical dataset of vtkUniformGrids
static vtkOverlappingAMRAlgorithm * New()
virtual int FillMetaData()=0
virtual void SetUpDataArraySelections()=0
virtual void SetFileName(const char *fileName)=0