VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
74  vtkSetMacro(CellLayerRight, int);
75  vtkGetMacro(CellLayerRight, int);
77 
78 protected:
81 
84 
87 
90 
92 
95  bool GetPartitioning(
96  int piece, int numPieces,int numCellLevels, int numCellsPerLevel,
97  int & beginCellLevel, int & endCellLevel, int & beginCell, int & endCell);
99 
100 private:
101  vtkNetCDFCAMReader(const vtkNetCDFCAMReader&); // Not implemented.
102  void operator=(const vtkNetCDFCAMReader&); // Not implemented.
103 
105 
107  char* FileName;
108  char* CurrentFileName;
109  vtkSetStringMacro(CurrentFileName);
111 
113 
114  char* ConnectivityFileName;
115  char* CurrentConnectivityFileName;
116  vtkSetStringMacro(CurrentConnectivityFileName);
118 
119  int SingleLevel;
120 
121  int CellLayerRight;
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 *)