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:
36  void PrintSelf(ostream &os, vtkIndent indent );
37 
40 
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 
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_ */
vtkAMRFlashReader::ReadMetaData
void ReadMetaData()
vtkFlashReaderInternal
Definition: vtkAMRFlashReaderInternal.h:132
vtkUniformGrid
image data with blanking
Definition: vtkUniformGrid.h:40
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkAMRFlashReader::FillMetaData
int FillMetaData()
vtkAMRFlashReader::GetAMRGridPointData
void GetAMRGridPointData(const int vtkNotUsed(blockIdx), vtkUniformGrid *vtkNotUsed(block), const char *vtkNotUsed(field))
Definition: vtkAMRFlashReader.h:71
VTKIOAMR_EXPORT
#define VTKIOAMR_EXPORT
Definition: vtkIOAMRModule.h:15
vtkAMRFlashReader::~vtkAMRFlashReader
~vtkAMRFlashReader()
vtkAMRFlashReader::GetBlockLevel
int GetBlockLevel(const int blockIdx)
vtkAMRBaseReader
Definition: vtkAMRBaseReader.h:42
vtkNotUsed
#define vtkNotUsed(x)
Definition: vtkSetGet.h:557
vtkIOAMRModule.h
vtkAMRFlashReader::New
static vtkAMRFlashReader * New()
vtkAMRFlashReader::GetAMRGridData
void GetAMRGridData(const int blockIdx, vtkUniformGrid *block, const char *field)
vtkAMRFlashReader::SetUpDataArraySelections
void SetUpDataArraySelections()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkAMRFlashReader::GetAMRGrid
vtkUniformGrid * GetAMRGrid(const int blockIdx)
vtkX3D::field
@ field
Definition: vtkX3D.h:177
vtkOverlappingAMR
hierarchical dataset of vtkUniformGrids
Definition: vtkOverlappingAMR.h:46
vtkAMRFlashReader::SetFileName
void SetFileName(const char *fileName)
vtkAMRFlashReader::GetNumberOfLevels
int GetNumberOfLevels()
vtkAMRFlashReader::vtkAMRFlashReader
vtkAMRFlashReader()
vtkAMRFlashReader
Definition: vtkAMRFlashReader.h:32
vtkAMRFlashReader::GetNumberOfBlocks
int GetNumberOfBlocks()
vtkAMRFlashReader::IsReady
bool IsReady
Definition: vtkAMRFlashReader.h:78
vtkAMRBaseReader.h
vtkAMRFlashReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)