45 #ifndef vtkOpenFOAMReader_h
46 #define vtkOpenFOAMReader_h
48 #include "vtkIOGeometryModule.h"
58 class vtkOpenFOAMReaderPrivate;
76 vtkSetStringMacro(FileName);
77 vtkGetStringMacro(FileName);
85 return this->GetNumberOfSelectionArrays(this->CellDataArraySelection);
94 return this->GetSelectionArrayStatus(this->CellDataArraySelection,
name);
98 this->SetSelectionArrayStatus(this->CellDataArraySelection,
name, status);
107 return this->GetSelectionArrayName(this->CellDataArraySelection,
index);
121 return this->GetNumberOfSelectionArrays(this->PointDataArraySelection);
130 return this->GetSelectionArrayStatus(this->PointDataArraySelection,
name);
134 this->SetSelectionArrayStatus(this->PointDataArraySelection,
name, status);
143 return this->GetSelectionArrayName(this->PointDataArraySelection,
index);
157 return this->GetNumberOfSelectionArrays(this->LagrangianDataArraySelection);
166 return this->GetSelectionArrayStatus(this->LagrangianDataArraySelection,
name);
170 this->SetSelectionArrayStatus(this->LagrangianDataArraySelection,
name, status);
179 return this->GetSelectionArrayName(this->LagrangianDataArraySelection,
index);
187 this->DisableAllSelectionArrays(this->LagrangianDataArraySelection);
191 this->EnableAllSelectionArrays(this->LagrangianDataArraySelection);
199 return this->GetNumberOfSelectionArrays(this->PatchDataArraySelection);
208 return this->GetSelectionArrayStatus(this->PatchDataArraySelection,
name);
212 this->SetSelectionArrayStatus(this->PatchDataArraySelection,
name, status);
221 return this->GetSelectionArrayName(this->PatchDataArraySelection,
index);
275 vtkSetMacro(SkipZeroTime,
bool);
276 vtkGetMacro(SkipZeroTime,
bool);
277 vtkBooleanMacro(SkipZeroTime,
bool);
312 vtkGetMacro(Use64BitLabels,
bool);
313 vtkBooleanMacro(Use64BitLabels,
bool);
321 vtkGetMacro(CopyDataToCellZones,
bool);
322 vtkSetMacro(CopyDataToCellZones,
bool);
323 vtkBooleanMacro(CopyDataToCellZones,
bool);
333 vtkGetMacro(Use64BitFloats,
bool);
334 vtkBooleanMacro(Use64BitFloats,
bool);
339 this->Refresh =
true;
349 friend class vtkOpenFOAMReaderPrivate;
dynamic, self-adjusting array of char
create and manipulate ordered lists of objects
Store on/off settings for data arrays for a vtkSource.
dynamic, self-adjusting array of double
a simple class to control print indentation
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual void Modified()
Update the modification time for this object.
reads a dataset in OpenFOAM format
vtkMTimeType CellSelectionMTimeOld
void SetLagrangianArrayStatus(const char *name, int status)
~vtkOpenFOAMReader() override
vtkTypeBool AddDimensionsToArrayNames
void DisableAllPatchArrays()
Turn on/off all Patches including the Internal Mesh.
int GetCellArrayStatus(const char *name)
Get/Set whether the cell array with the given name is to be read.
void SetPatchArrayStatus(const char *name, int status)
int PositionsIsIn13FormatOld
static vtkOpenFOAMReader * New()
int GetNumberOfCellArrays(void)
Get the number of cell arrays available in the input.
vtkDataArraySelection * PointDataArraySelection
vtkMTimeType PatchSelectionMTimeOld
void EnableAllCellArrays()
int ListTimeStepsByControlDictOld
vtkDataArraySelection * CellDataArraySelection
vtkTypeBool PositionsIsIn13Format
void CreateCasePath(vtkStdString &, vtkStdString &)
void DisableAllPointArrays()
Turn on/off all point arrays.
void EnableAllPatchArrays()
const char * GetCellArrayName(int index)
Get the name of the cell array with the given index in the input.
void EnableAllLagrangianArrays()
virtual void SetUse64BitLabels(bool val)
If true, labels are expected to be 64-bit, rather than 32.
void CreateCharArrayFromString(vtkCharArray *, const char *, vtkStdString &)
vtkDataArraySelection * PatchDataArraySelection
int GetLagrangianArrayStatus(const char *name)
Get/Set whether the Lagrangian array with the given name is to be read.
vtkTypeBool DecomposePolyhedra
void SetParent(vtkOpenFOAMReader *parent)
bool SetTimeValue(const double)
vtkDoubleArray * GetTimeValues()
vtkTypeBool ListTimeStepsByControlDict
const char * GetPointArrayName(int index)
Get the name of the point array with the given index in the input.
int GetNumberOfLagrangianArrays(void)
Get the number of Lagrangian arrays available in the input.
vtkMTimeType PointSelectionMTimeOld
void DisableAllLagrangianArrays()
Turn on/off all Lagrangian arrays.
int AddDimensionsToArrayNamesOld
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkDataArraySelection * LagrangianDataArraySelection
void EnableAllPointArrays()
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int GetPatchArrayStatus(const char *name)
Get/Set whether the Patch with the given name is to be read.
void UpdateProgress(double)
int GetNumberOfPatchArrays(void)
Get the number of Patches (including Internal Mesh) available in the input.
int MakeInformationVector(vtkInformationVector *, const vtkStdString &)
int GetPointArrayStatus(const char *name)
Get/Set whether the point array with the given name is to be read.
int MakeMetaDataAtTimeStep(const bool)
void DisableAllCellArrays()
Turn on/off all cell arrays.
void SetCellArrayStatus(const char *name, int status)
const char * GetLagrangianArrayName(int index)
Get the name of the Lagrangian array with the given index in the input.
const char * GetPatchArrayName(int index)
Get the name of the Patch with the given index in the input.
vtkStringArray * LagrangianPaths
vtkStdString * FileNameOld
virtual void SetUse64BitFloats(bool val)
If true, floats are expected to be 64-bit, rather than 32.
void SetTimeInformation(vtkInformationVector *, vtkDoubleArray *)
vtkTypeBool CreateCellToPoint
int GetNumberOfPointArrays(void)
Get the number of point arrays available in the input.
vtkMTimeType LagrangianSelectionMTimeOld
int CanReadFile(const char *)
Determine if the file can be read with this reader.
void PrintSelf(ostream &, vtkIndent) override
Methods invoked by print to print information about the object including superclasses.
int DecomposePolyhedraOld
void SetPointArrayStatus(const char *name, int status)
Wrapper around std::string to keep symbols short.
a vtkAbstractArray subclass for strings
vtkTypeUInt32 vtkMTimeType