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:
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 
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
vtkNetCDFCAMReader::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkNetCDFCAMReader
Read unstructured NetCDF CAM files.
Definition: vtkNetCDFCAMReader.h:41
vtkNetCDFCAMReader::GetCellLayerRight
int GetCellLayerRight()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkNetCDFCAMReader::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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)
Returns true for success.
vtkNetCDFCAMReader::SetConnectivityFileName
void SetConnectivityFileName(const char *fileName)
vtkNetCDFCAMReader::CanReadFile
static int CanReadFile(const char *fileName)
Returns 1 if this file can be read and 0 if the file cannot be read.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkNetCDFCAMReader::RequestInformation
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkNetCDFCAMReader::SetFileName
void SetFileName(const char *fileName)
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:41
vtkNetCDFCAMReader::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkNetCDFCAMReader::SetCellLayerRight
void SetCellLayerRight(int)
Specify which "side" of the domain to add the connecting cells at.
vtkNetCDFCAMReader::vtkNetCDFCAMReader
vtkNetCDFCAMReader()