VTK  9.2.6
vtkCONVERGECFDReader.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkCONVERGECFDReader.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=========================================================================*/
15
47
48#ifndef vtkCONVERGECFDReader_h
49#define vtkCONVERGECFDReader_h
50
51#include "vtkIOCONVERGECFDModule.h" // For export macro
52
53#include "vtkNew.h" // for vtkNew
55
56#include <string> // for std::string
57#include <vector> // for std::vector
58
60
62{
63public:
66 void PrintSelf(ostream& os, vtkIndent indent) override;
67
73
80
84 virtual int CanReadFile(VTK_FILEPATH const char* fname);
85
87
93
94protected:
97
99
101 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) override;
102
103 // Look for series of files defining timesteps
105
106 // Get the OUTPUT_TIME attribute from the file
107 bool ReadOutputTime(const std::string& filePath, double& time);
108
109 // From the given information request, return the index of the file that supplies the timestep
111
112 // Name of file chosen in the file system
113 char* FileName;
114
115 // List of files that match the chosen file name
116 std::vector<std::string> FileNames;
117
120
121 class vtkInternal;
122 vtkInternal* Internal;
123
124private:
126 void operator=(const vtkCONVERGECFDReader&) = delete;
127};
128
129#endif // vtkCONVERGECFDReader_h
vtkSetFilePathMacro(FileName)
Specify file name of the Exodus file.
vtkNew< vtkDataArraySelection > CellDataArraySelection
void ReadTimeSteps(vtkInformation *outInfo)
vtkNew< vtkDataArraySelection > ParcelDataArraySelection
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *outputVector) override
Methods for subclasses to override to handle different pipeline requests.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Methods for subclasses to override to handle different pipeline requests.
std::vector< std::string > FileNames
bool ReadOutputTime(const std::string &filePath, double &time)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkCONVERGECFDReader() override
size_t SelectTimeStepIndex(vtkInformation *info)
vtkGetFilePathMacro(FileName)
Specify file name of the Exodus file.
static vtkCONVERGECFDReader * New()
virtual int CanReadFile(VTK_FILEPATH const char *fname)
Determine if the file can be read with this reader.
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Definition vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Allocate and hold a VTK object.
Definition vtkNew.h:62
#define VTK_FILEPATH