45 #ifndef vtkOpenFOAMReader_h
46 #define vtkOpenFOAMReader_h
48 #include "vtkIOGeometryModule.h"
58 class vtkOpenFOAMReaderPrivate;
70 int CanReadFile(const
char *);
76 vtkSetStringMacro(FileName);
83 int GetNumberOfCellArrays(
void)
84 {
return this->GetNumberOfSelectionArrays(this->CellDataArraySelection); }
91 {
return this->GetSelectionArrayStatus(this->CellDataArraySelection, name); }
93 { this->SetSelectionArrayStatus(this->CellDataArraySelection, name, status); }
100 {
return this->GetSelectionArrayName(this->CellDataArraySelection, index); }
106 { this->DisableAllSelectionArrays(this->CellDataArraySelection); }
108 { this->EnableAllSelectionArrays(this->CellDataArraySelection); }
114 {
return this->GetNumberOfSelectionArrays(this->PointDataArraySelection); }
121 {
return this->GetSelectionArrayStatus(this->PointDataArraySelection, name); }
123 { this->SetSelectionArrayStatus(this->PointDataArraySelection,
131 {
return this->GetSelectionArrayName(this->PointDataArraySelection, index); }
137 { this->DisableAllSelectionArrays(this->PointDataArraySelection); }
139 { this->EnableAllSelectionArrays(this->PointDataArraySelection); }
145 {
return this->GetNumberOfSelectionArrays(
146 this->LagrangianDataArraySelection); }
153 {
return this->GetSelectionArrayStatus(this->LagrangianDataArraySelection,
156 { this->SetSelectionArrayStatus(this->LagrangianDataArraySelection, name,
164 {
return this->GetSelectionArrayName(this->LagrangianDataArraySelection,
171 { this->DisableAllSelectionArrays(this->LagrangianDataArraySelection); }
173 { this->EnableAllSelectionArrays(this->LagrangianDataArraySelection); }
179 {
return this->GetNumberOfSelectionArrays(this->PatchDataArraySelection); }
186 {
return this->GetSelectionArrayStatus(this->PatchDataArraySelection, name); }
188 { this->SetSelectionArrayStatus(this->PatchDataArraySelection, name,
196 {
return this->GetSelectionArrayName(this->PatchDataArraySelection, index); }
202 { this->DisableAllSelectionArrays(this->PatchDataArraySelection); }
204 { this->EnableAllSelectionArrays(this->PatchDataArraySelection); }
211 vtkGetMacro(CreateCellToPoint,
int);
220 vtkGetMacro(CacheMesh,
int);
229 vtkGetMacro(DecomposePolyhedra,
int);
242 vtkGetMacro(PositionsIsIn13Format,
int);
252 vtkGetMacro(SkipZeroTime,
bool);
261 vtkGetMacro(ListTimeStepsByControlDict,
int);
270 vtkGetMacro(AddDimensionsToArrayNames,
int);
279 vtkGetMacro(ReadZones,
int);
287 virtual void SetUse64BitLabels(
bool val);
288 vtkGetMacro(Use64BitLabels,
bool)
298 virtual
void SetUse64BitFloats(
bool val);
299 vtkGetMacro(Use64BitFloats,
bool)
303 void SetRefresh() { this->Refresh =
true; this->
Modified(); }
307 bool SetTimeValue(
const double);
309 int MakeMetaDataAtTimeStep(
const bool);
311 friend class vtkOpenFOAMReaderPrivate;
388 vtkInformationVector *) VTK_OVERRIDE;
389 int RequestData(vtkInformation *, vtkInformationVector **,
390 vtkInformationVector *) VTK_OVERRIDE;
393 void SetTimeInformation(vtkInformationVector *,
vtkDoubleArray *);
394 void CreateCharArrayFromString(
vtkCharArray *, const
char *, vtkStdString &);
396 void UpdateProgress(
double);
405 int GetSelectionArrayStatus(vtkDataArraySelection *, const
char *);
406 void SetSelectionArrayStatus(vtkDataArraySelection *, const
char *,
int);
407 const
char *GetSelectionArrayName(vtkDataArraySelection *,
int);
408 void DisableAllSelectionArrays(vtkDataArraySelection *);
409 void EnableAllSelectionArrays(vtkDataArraySelection *);
411 void AddSelectionNames(vtkDataArraySelection *,
vtkStringArray *);
int GetCellArrayStatus(const char *name)
Get/Set whether the cell array with the given name is to be read.
Wrapper around std::string to keep symbols short.
int AddDimensionsToArrayNames
void EnableAllPatchArrays()
void SetParent(vtkOpenFOAMReader *parent)
void SetLagrangianArrayStatus(const char *name, int status)
int GetPatchArrayStatus(const char *name)
Get/Set whether the Patch with the given name is to be read.
void SetPointArrayStatus(const char *name, int status)
vtkMTimeType LagrangianSelectionMTimeOld
int ListTimeStepsByControlDict
vtkTypeUInt32 vtkMTimeType
vtkDataArraySelection * LagrangianDataArraySelection
int GetPointArrayStatus(const char *name)
Get/Set whether the point array with the given name is to be read.
vtkMTimeType CellSelectionMTimeOld
const char * GetCellArrayName(int index)
Get the name of the cell array with the given index in the input.
vtkStringArray * LagrangianPaths
vtkDataArraySelection * CellDataArraySelection
a vtkAbstractArray subclass for strings
const char * GetPatchArrayName(int index)
Get the name of the Patch with the given index in the input.
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
int GetNumberOfLagrangianArrays(void)
Get the number of Lagrangian arrays available in the input.
const char * GetLagrangianArrayName(int index)
Get the name of the Lagrangian array with the given index in the input.
dynamic, self-adjusting array of double
static vtkMultiBlockDataSetAlgorithm * New()
vtkStdString * FileNameOld
void DisableAllCellArrays()
Turn on/off all cell arrays.
void EnableAllLagrangianArrays()
dynamic, self-adjusting array of char
int GetNumberOfPatchArrays(void)
Get the number of Patches (including Internal Mesh) available in the input.
a simple class to control print indentation
int ListTimeStepsByControlDictOld
Store on/off settings for data arrays for a vtkSource.
void EnableAllPointArrays()
vtkDataArraySelection * PointDataArraySelection
reads a dataset in OpenFOAM format
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual void Modified()
Update the modification time for this object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkMTimeType PatchSelectionMTimeOld
int AddDimensionsToArrayNamesOld
void DisableAllPatchArrays()
Turn on/off all Patches including the Internal Mesh.
int DecomposePolyhedraOld
void DisableAllLagrangianArrays()
Turn on/off all Lagrangian arrays.
void EnableAllCellArrays()
const char * GetPointArrayName(int index)
Get the name of the point array with the given index in the input.
int GetNumberOfPointArrays(void)
Get the number of point arrays available in the input.
create and manipulate ordered lists of objects
int PositionsIsIn13FormatOld
void SetPatchArrayStatus(const char *name, int status)
void DisableAllPointArrays()
Turn on/off all point arrays.
int GetLagrangianArrayStatus(const char *name)
Get/Set whether the Lagrangian array with the given name is to be read.
vtkMTimeType PointSelectionMTimeOld
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
int PositionsIsIn13Format
void SetCellArrayStatus(const char *name, int status)
vtkDataArraySelection * PatchDataArraySelection