50 #ifndef vtkOpenFOAMReader_h
51 #define vtkOpenFOAMReader_h
53 #include "vtkIOGeometryModule.h"
63 class vtkOpenFOAMReaderPrivate;
69 friend class vtkOpenFOAMReaderPrivate;
84 vtkSetFilePathMacro(FileName);
85 vtkGetFilePathMacro(FileName);
93 return this->GetNumberOfSelectionArrays(this->CellDataArraySelection);
102 return this->GetSelectionArrayStatus(this->CellDataArraySelection, name);
106 this->SetSelectionArrayStatus(this->CellDataArraySelection, name, status);
115 return this->GetSelectionArrayName(this->CellDataArraySelection, index);
129 return this->GetNumberOfSelectionArrays(this->PointDataArraySelection);
138 return this->GetSelectionArrayStatus(this->PointDataArraySelection, name);
142 this->SetSelectionArrayStatus(this->PointDataArraySelection, name, status);
151 return this->GetSelectionArrayName(this->PointDataArraySelection, index);
165 return this->GetNumberOfSelectionArrays(this->LagrangianDataArraySelection);
174 return this->GetSelectionArrayStatus(this->LagrangianDataArraySelection, name);
178 this->SetSelectionArrayStatus(this->LagrangianDataArraySelection, name, status);
187 return this->GetSelectionArrayName(this->LagrangianDataArraySelection, index);
195 this->DisableAllSelectionArrays(this->LagrangianDataArraySelection);
199 this->EnableAllSelectionArrays(this->LagrangianDataArraySelection);
207 return this->GetNumberOfSelectionArrays(this->PatchDataArraySelection);
216 return this->GetSelectionArrayStatus(this->PatchDataArraySelection, name);
220 this->SetSelectionArrayStatus(this->PatchDataArraySelection, name, status);
229 return this->GetSelectionArrayName(this->PatchDataArraySelection, index);
275 vtkBooleanMacro(PositionsIsIn13Format,
vtkTypeBool);
283 vtkSetMacro(SkipZeroTime,
bool);
284 vtkGetMacro(SkipZeroTime,
bool);
285 vtkBooleanMacro(SkipZeroTime,
bool);
292 vtkSetMacro(ListTimeStepsByControlDict,
vtkTypeBool);
293 vtkGetMacro(ListTimeStepsByControlDict,
vtkTypeBool);
294 vtkBooleanMacro(ListTimeStepsByControlDict,
vtkTypeBool);
301 vtkSetMacro(AddDimensionsToArrayNames,
vtkTypeBool);
302 vtkGetMacro(AddDimensionsToArrayNames,
vtkTypeBool);
303 vtkBooleanMacro(AddDimensionsToArrayNames,
vtkTypeBool);
319 virtual void SetUse64BitLabels(
bool val);
320 vtkGetMacro(Use64BitLabels,
bool);
321 vtkBooleanMacro(Use64BitLabels,
bool);
329 vtkGetMacro(CopyDataToCellZones,
bool);
330 vtkSetMacro(CopyDataToCellZones,
bool);
331 vtkBooleanMacro(CopyDataToCellZones,
bool);
340 virtual void SetUse64BitFloats(
bool val);
341 vtkGetMacro(Use64BitFloats,
bool);
342 vtkBooleanMacro(Use64BitFloats,
bool);
347 this->Refresh =
true;
356 double GetTimeValue()
const;
357 bool SetTimeValue(
const double);
361 int MakeMetaDataAtTimeStep(
const bool);
465 void PrintTimes(std::ostream& os,
vtkIndent indent =
vtkIndent(),
bool full =
false)
const;
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.
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
vtkTypeUInt32 vtkMTimeType
int GetNumberOfCellArrays(void)
Get the number of cell arrays available in the input.
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
vtkTypeBool ListTimeStepsByControlDict
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.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
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
vtkTypeBool CreateCellToPoint
static vtkMultiBlockDataSetAlgorithm * New()
vtkStdString * FileNameOld
void DisableAllCellArrays()
Turn on/off all cell arrays.
void EnableAllLagrangianArrays()
dynamic, self-adjusting array of char
vtkTypeBool AddDimensionsToArrayNames
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, etc.
void EnableAllPointArrays()
vtkDataArraySelection * PointDataArraySelection
reads a dataset in OpenFOAM format
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.
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.
void UpdateProgress(double amount)
Update the progress of the process object.
int GetNumberOfPointArrays(void)
Get the number of point arrays available in the input.
create and manipulate ordered lists of objects
int PositionsIsIn13FormatOld
vtkTypeBool PositionsIsIn13Format
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
void SetCellArrayStatus(const char *name, int status)
vtkTypeBool DecomposePolyhedra
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkDataArraySelection * PatchDataArraySelection