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