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
38class NcFile;
39
40class VTKIONETCDF_EXPORT vtkNetCDFCAMReader : public vtkUnstructuredGridAlgorithm
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent);
46
53 static int CanReadFile(const char* fileName);
54
55 void SetFileName(const char* 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
88protected:
91
94
97
100
107 int piece, int numPieces,int numCellLevels, int numCellsPerLevel,
108 int & beginCellLevel, int & endCellLevel, int & beginCell, int & endCell);
109
110private:
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
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Read unstructured NetCDF CAM files.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void SetConnectivityFileName(const char *fileName)
static vtkNetCDFCAMReader * New()
void SetFileName(const char *fileName)
bool GetPartitioning(int piece, int numPieces, int numCellLevels, int numCellsPerLevel, int &beginCellLevel, int &endCellLevel, int &beginCell, int &endCell)
Returns true for success.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void SetCellLayerRight(int)
Specify which "side" of the domain to add the connecting cells at.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
static int CanReadFile(const char *fileName)
Returns 1 if this file can be read and 0 if the file cannot be read.
Superclass for algorithms that produce only unstructured grid as output.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.