VTK
vtkNetCDFCAMReader.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkNetCDFCAMReader.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 =========================================================================*/
31 #ifndef vtkNetCDFCAMReader_h
32 #define vtkNetCDFCAMReader_h
33 
34 #include "vtkIONetCDFModule.h" // For export macro
36 
37 class NcFile;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
50  static int CanReadFile(const char* fileName);
51 
52  void SetFileName(const char* fileName);
53  vtkGetStringMacro(FileName);
54 
55  void SetConnectivityFileName(const char* fileName);
56  vtkGetStringMacro(ConnectivityFileName);
57 
59 
65  vtkBooleanMacro(SingleLevel,int);
66  vtkSetClampMacro(SingleLevel, int, 0, 1);
67  vtkGetMacro(SingleLevel, int);
69 
71 
79 
80 protected:
83 
86 
89 
92 
94 
98  int piece, int numPieces,int numCellLevels, int numCellsPerLevel,
99  int & beginCellLevel, int & endCellLevel, int & beginCell, int & endCell);
101 
102 private:
103  vtkNetCDFCAMReader(const vtkNetCDFCAMReader&); // Not implemented.
104  void operator=(const vtkNetCDFCAMReader&); // Not implemented.
105 
107 
109  char* FileName;
110  char* CurrentFileName;
111  vtkSetStringMacro(CurrentFileName);
113 
115 
116  char* ConnectivityFileName;
117  char* CurrentConnectivityFileName;
118  vtkSetStringMacro(CurrentConnectivityFileName);
120 
121  int SingleLevel;
122 
123  double * TimeSteps;
124 
125  long NumberOfTimeSteps;
126 
128 
130  NcFile* PointsFile;
131  NcFile* ConnectivityFile;
132 };
134 
135 #endif
vtkNetCDFCAMReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkNetCDFCAMReader
Read unstructured NetCDF CAM files.
Definition: vtkNetCDFCAMReader.h:40
vtkNetCDFCAMReader::GetCellLayerRight
int GetCellLayerRight()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkNetCDFCAMReader::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkNetCDFCAMReader::New
static vtkNetCDFCAMReader * New()
vtkNetCDFCAMReader::~vtkNetCDFCAMReader
~vtkNetCDFCAMReader()
vtkNetCDFCAMReader::GetPartitioning
bool GetPartitioning(int piece, int numPieces, int numCellLevels, int numCellsPerLevel, int &beginCellLevel, int &endCellLevel, int &beginCell, int &endCell)
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkNetCDFCAMReader::SetConnectivityFileName
void SetConnectivityFileName(const char *fileName)
vtkNetCDFCAMReader::CanReadFile
static int CanReadFile(const char *fileName)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetStringMacro
#define vtkSetStringMacro(name)
Definition: vtkSetGet.h:104
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
vtkNetCDFCAMReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
VTK_LEGACY
#define VTK_LEGACY(method)
Definition: vtkSetGet.h:801
VTKIONETCDF_EXPORT
#define VTKIONETCDF_EXPORT
Definition: vtkIONetCDFModule.h:15
vtkNetCDFCAMReader::SetFileName
void SetFileName(const char *fileName)
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkNetCDFCAMReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIONetCDFModule.h
vtkNetCDFCAMReader::SetCellLayerRight
void SetCellLayerRight(int)
vtkNetCDFCAMReader::vtkNetCDFCAMReader
vtkNetCDFCAMReader()