43#ifndef MeshedSurfaceProxy_H
44#define MeshedSurfaceProxy_H
58template<
class Face>
class MeshedSurface;
137 (
name, surf, streamOpt, options)
154 const word& fileType,
168 return faces_.
size();
206 return faceMap_.
size() == faces_.
size();
212 return faceIds_.
size() == faces_.
size();
237 const word& fileType,
242 write(
name, fileType, *
this, streamOpt, options);
The IOstreamOption is a simple container for options an IOstream can normally have.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
Face face_type
The face type.
virtual void write(const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
Write to file, choosing writer based on the file extension.
static bool canWriteType(const word &fileType, bool verbose=false)
Can this file format type be written via MeshedSurfaceProxy?
const UList< surfZone > & surfZones() const
Const access to the surface zones.
ClassName("MeshedSurfaceProxy")
Declare type-name (with debug switch)
static wordHashSet writeTypes()
The file format types that can be written via MeshedSurfaceProxy.
declareMemberFunctionSelectionTable(void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf, IOstreamOption streamOpt, const dictionary &options),(name, surf, streamOpt, options))
virtual ~MeshedSurfaceProxy()=default
Destructor.
bool useFaceIds() const
Possible to use faceIds?
const UList< Face > & surfFaces() const
Return const access to the faces.
label size() const
The surface size is the number of faces.
bool useFaceMap() const
Can/should use faceMap?
label nTriangles() const
Count number of triangles.
const labelUList & faceIds() const
Const access to the faceIds, zero-sized when unused.
point point_type
The point type.
const pointField & points() const
Return const access to the points.
const labelUList & faceMap() const
Const access to the faceMap, zero-sized when unused.
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...
void size(const label n)
Older name for setAddressableSize.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
A class for handling words, derived from Foam::string.
static const word null
An empty word.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.
Macros to ease declaration of member function selection tables.
#define declareMemberFunctionSelectionTable(returnType, baseType, funcName, argNames, argList, parListUnused)
Declare a run-time member-function selection (variables and adder classes)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Macros to ease declaration of run-time selection tables.