VTK  9.1.0
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
45#ifndef vtkCONVERGECFDReader_h
46#define vtkCONVERGECFDReader_h
47
48#include "vtkIOCONVERGECFDModule.h" // For export macro
49
50#include "vtkNew.h" // for vtkNew
52
53#include <string> // for std::string
54#include <vector> // for std::vector
55
57
59{
60public:
63 void PrintSelf(ostream& os, vtkIndent indent) override;
64
69 vtkGetObjectMacro(CellDataArraySelection, vtkDataArraySelection);
70
76 vtkGetObjectMacro(ParcelDataArraySelection, vtkDataArraySelection);
77
81 virtual int CanReadFile(VTK_FILEPATH const char* fname);
82
84
90
91protected:
94
96
98 vtkInformation*, vtkInformationVector**, vtkInformationVector* outputVector) override;
99
100 // Look for series of files defining timesteps
102
103 // Get the OUTPUT_TIME attribute from the file
104 bool ReadOutputTime(const std::string& filePath, double& time);
105
106 // From the given information request, return the index of the file that supplies the timestep
108
109 // Name of file chosen in the file system
110 char* FileName;
111
112 // List of files that match the chosen file name
113 std::vector<std::string> FileNames;
114
117
118 class vtkInternal;
119 vtkInternal* Internal;
120
121private:
123 void operator=(const vtkCONVERGECFDReader&) = delete;
124};
125
126#endif // vtkCONVERGECFDReader_h
Reader for CONVERGE CFD post files.
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 for a vtkSource.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce vtkPartitionedDataSetCollectionAlgorithm.
@ info
Definition: vtkX3D.h:382
@ time
Definition: vtkX3D.h:503
@ string
Definition: vtkX3D.h:496
#define VTK_FILEPATH