A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats. More...
#include <surfMesh/MeshedSurfaceProxy.H>
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
Definition at line 64 of file MeshedSurfaceProxy.H.
Public Member Functions | |
ClassName ("MeshedSurfaceProxy") | |
Runtime type information.
| |
MeshedSurfaceProxy (const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >()) | |
Construct from component references.
| |
virtual | ~MeshedSurfaceProxy () |
declareMemberFunctionSelectionTable (void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf),(name, surf)) | |
const pointField & | points () const |
Return const access to the points.
| |
const List< Face > & | faces () const |
Return const access to the faces.
| |
const List< surfZone > & | surfZones () const |
Const access to the surface zones.
| |
const List< label > & | faceMap () const |
Const access to the faceMap, zero-sized when unused.
| |
bool | useFaceMap () const |
Use faceMap?
| |
virtual void | write (const fileName &name) const |
Generic write routine. Chooses writer based on extension.
| |
virtual void | write (const Time &, const word &surfName="") const |
Write to database.
| |
Static Public Member Functions | |
static wordHashSet | writeTypes () |
The file format types that can be written via MeshedSurfaceProxy.
| |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can this file format type be written via MeshedSurfaceProxy?
| |
static void | write (const fileName &, const MeshedSurfaceProxy< Face > &) |
Write to file.
|
MeshedSurfaceProxy | ( | const pointField & | pointLst, |
const List< Face > & | faceLst, | ||
const List< surfZone > & | zoneLst = List<surfZone>() ,
|
||
const List< label > & | faceMap = List<label>()
|
||
) |
Construct from component references.
Definition at line 222 of file MeshedSurfaceProxy.C.
~MeshedSurfaceProxy | ( | ) | [virtual]
|
Definition at line 239 of file MeshedSurfaceProxy.C.
ClassName | ( | "MeshedSurfaceProxy< Face >" | ) |
Runtime type information.
Foam::wordHashSet writeTypes | ( | ) | [static]
|
The file format types that can be written via MeshedSurfaceProxy.
Definition at line 36 of file MeshedSurfaceProxy.C.
bool canWriteType | ( | const word & | ext, |
const bool | verbose = false
|
||
) | [static]
|
Can this file format type be written via MeshedSurfaceProxy?
Definition at line 44 of file MeshedSurfaceProxy.C.
declareMemberFunctionSelectionTable | ( | void | , |
MeshedSurfaceProxy< Face > | , | ||
write | , | ||
fileExtension | , | ||
(const fileName &name, const MeshedSurfaceProxy< Face > &surf) | , | ||
(name, surf) | |||
) |
static void write | ( | const fileName & | , |
const MeshedSurfaceProxy< Face > & | |||
) | [static]
|
Write to file.
Referenced by UnsortedMeshedSurface< Face >::write(), MeshedSurfaceProxy< Face >::write(), and MeshedSurface< Face >::write().
const pointField& points | ( | ) | const [inline]
|
Return const access to the points.
Definition at line 134 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
const List<Face>& faces | ( | ) | const [inline]
|
Return const access to the faces.
Definition at line 140 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
Const access to the surface zones.
If zones are defined, they must be contiguous and cover the entire surface
Definition at line 148 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
const List<label>& faceMap | ( | ) | const [inline]
|
Const access to the faceMap, zero-sized when unused.
Definition at line 154 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
bool useFaceMap | ( | ) | const [inline]
|
Use faceMap?
Definition at line 160 of file MeshedSurfaceProxy.H.
References List< T >::size().
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
virtual void write | ( | const fileName & | name ) | const [inline, virtual]
|
Generic write routine. Chooses writer based on extension.
Definition at line 168 of file MeshedSurfaceProxy.H.
References MeshedSurfaceProxy< Face >::write().
Write to database.
Definition at line 90 of file MeshedSurfaceProxy.C.
References Foam::endl(), Foam::Info, Foam::isDir(), Foam::mkDir(), IOobject::name(), name(), points, Foam::reorder(), Time::timeName(), Time::timePath(), IOobject::writeEndDivider(), and IOobject::writeHeader().