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:
42  static vtkNetCDFCAMReader *New();
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 
76  VTK_LEGACY(void SetCellLayerRight(int));
77  VTK_LEGACY(int GetCellLayerRight());
79 
80 protected:
83 
86 
89 
92 
94 
97  bool GetPartitioning(
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
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Read unstructured NetCDF CAM files.
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
#define VTKIONETCDF_EXPORT
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)