42#ifndef Foam_triSurfaceLoader_H
43#define Foam_triSurfaceLoader_H
56class triSurfaceLoader;
164 const scalar scaleFactor = -1
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A class for handling file names.
Convenience class for loading single or multiple surface files from the constant/triSurface (or other...
static const Enum< loadingOption > loadingOptionNames
The loading enumeration names.
autoPtr< triSurface > load(const enum loadingOption opt=loadingOption::OFFSET_REGION, const scalar scaleFactor=-1) const
Load a single file, or load and combine multiple selected files.
~triSurfaceLoader()=default
Destructor.
label readDir()
Read directory and populate the 'available' files.
label selectAll()
Populates 'selected' with all available files.
const wordList & available() const noexcept
The list of available files.
label select(const word &name)
Populates 'selected' with a subset of the available files.
const wordList & selected() const noexcept
The list of selected files.
const fileName & directory() const noexcept
The directory being used.
loadingOption
The file loading options for triSurfaceLoader.
@ FILE_REGION
"file" = One region for each file
@ MERGE_REGION
"merge" = Merge regions by name
@ OFFSET_REGION
"offset" = Offset regions per file
@ SINGLE_REGION
"single" = One region for all files
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
A class for handling words, derived from Foam::string.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.