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 
35 
36 class NcFile;
37 
39 {
40 public:
41  static vtkNetCDFCAMReader *New();
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
49  static int CanReadFile(const char* fileName);
50 
51  void SetFileName(const char* fileName);
52  vtkGetStringMacro(FileName);
53 
54  void SetConnectivityFileName(const char* fileName);
55  vtkGetStringMacro(ConnectivityFileName);
56 
58 
64  vtkSetMacro(SingleLevel, int);
65  vtkGetMacro(SingleLevel, int);
67 
69 
72  vtkSetMacro(CellLayerRight, int);
73  vtkGetMacro(CellLayerRight, int);
75 
76 protected:
79 
82 
85 
88 
89 private:
90  vtkNetCDFCAMReader(const vtkNetCDFCAMReader&); // Not implemented.
91  void operator=(const vtkNetCDFCAMReader&); // Not implemented.
92 
94 
96  char* FileName;
97  char* CurrentFileName;
98  vtkSetStringMacro(CurrentFileName);
100 
102 
103  char* ConnectivityFileName;
104  char* CurrentConnectivityFileName;
105  vtkSetStringMacro(CurrentConnectivityFileName);
107 
108  int SingleLevel;
109 
110  int CellLayerRight;
111 
112  double * TimeSteps;
113 
114  long NumberOfTimeSteps;
115 
117 
119  NcFile* PointsFile;
120  NcFile* ConnectivityFile;
121 };
123 
124 #endif