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 =========================================================================*/
32 #ifndef vtkNetCDFCAMReader_h
33 #define vtkNetCDFCAMReader_h
34 
35 #include "vtkIONetCDFModule.h" // For export macro
37 
38 class NcFile;
39 
40 class VTKIONETCDF_EXPORT vtkNetCDFCAMReader : public vtkUnstructuredGridAlgorithm
41 {
42 public:
43  static vtkNetCDFCAMReader *New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
53  static int CanReadFile(const char* fileName);
54 
55  void SetFileName(const char* fileName);
56  vtkGetStringMacro(FileName);
57 
58  void SetConnectivityFileName(const char* fileName);
59  vtkGetStringMacro(ConnectivityFileName);
60 
62 
71  vtkBooleanMacro(SingleLevel,int);
72  vtkSetClampMacro(SingleLevel, int, 0, 1);
73  vtkGetMacro(SingleLevel, int);
75 
77 
84  VTK_LEGACY(void SetCellLayerRight(int));
85  VTK_LEGACY(int GetCellLayerRight());
87 
88 protected:
91 
94 
97 
100 
106  bool GetPartitioning(
107  int piece, int numPieces,int numCellLevels, int numCellsPerLevel,
108  int & beginCellLevel, int & endCellLevel, int & beginCell, int & endCell);
109 
110 private:
111  vtkNetCDFCAMReader(const vtkNetCDFCAMReader&) VTK_DELETE_FUNCTION;
112  void operator=(const vtkNetCDFCAMReader&) VTK_DELETE_FUNCTION;
113 
115 
119  char* FileName;
120  char* CurrentFileName;
121  vtkSetStringMacro(CurrentFileName);
123 
125 
128  char* ConnectivityFileName;
129  char* CurrentConnectivityFileName;
130  vtkSetStringMacro(CurrentConnectivityFileName);
132 
133  int SingleLevel;
134 
135  double * TimeSteps;
136 
137  long NumberOfTimeSteps;
138 
140 
144  NcFile* PointsFile;
145  NcFile* ConnectivityFile;
146 };
148 
149 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Read unstructured NetCDF CAM files.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.