A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats. More...
Public Types | |
typedef Face | FaceType |
Face type used. More... | |
Public Member Functions | |
ClassName ("MeshedSurfaceProxy") | |
Runtime type information. More... | |
MeshedSurfaceProxy (const pointField &, const List< Face > &, const List< surfZone > &=List< surfZone >(), const List< label > &faceMap=List< label >()) | |
Construct from component references. More... | |
virtual | ~MeshedSurfaceProxy () |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, MeshedSurfaceProxy, write, fileExtension,(const fileName &name, const MeshedSurfaceProxy< Face > &surf),(name, surf)) | |
const pointField & | points () const |
Return const access to the points. More... | |
const List< Face > & | faces () const |
Return const access to the faces. More... | |
const List< surfZone > & | surfZones () const |
Const access to the surface zones. More... | |
const List< label > & | faceMap () const |
Const access to the faceMap, zero-sized when unused. More... | |
bool | useFaceMap () const |
Use faceMap? More... | |
virtual void | write (const fileName &name) const |
Generic write routine. Chooses writer based on extension. More... | |
virtual void | write (const Time &, const word &surfName="") const |
Write to database. More... | |
Static Public Member Functions | |
static wordHashSet | writeTypes () |
The file format types that can be written via MeshedSurfaceProxy. More... | |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can this file format type be written via MeshedSurfaceProxy? More... | |
static void | write (const fileName &, const MeshedSurfaceProxy< Face > &) |
Write to file. More... | |
Static Public Member Functions inherited from surfaceFormatsCore | |
static bool | checkSupport (const wordHashSet &available, const word &ext, const bool verbose, const word &functionName) |
... More... | |
Additional Inherited Members | |
Static Public Attributes inherited from surfaceFormatsCore | |
static word | nativeExt |
The file extension corresponding to 'native' surface format. More... | |
Static Protected Member Functions inherited from surfaceFormatsCore | |
template<class Container > | |
static List< surfZone > | oneZone (const Container &container, const word &name="zone0") |
Return a list with a single entry,. More... | |
static string | getLineNoComment (IFstream &) |
Read non-comment line. More... | |
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
Definition at line 63 of file MeshedSurfaceProxy.H.
typedef Face FaceType |
Face type used.
Definition at line 83 of file MeshedSurfaceProxy.H.
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 217 of file MeshedSurfaceProxy.C.
|
virtual |
Destructor.
Definition at line 235 of file MeshedSurfaceProxy.C.
ClassName | ( | "MeshedSurfaceProxy< Face >" | ) |
Runtime type information.
|
static |
The file format types that can be written via MeshedSurfaceProxy.
Definition at line 37 of file MeshedSurfaceProxy.C.
Referenced by surfaceWriter::New().
|
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 |
Write to file.
Referenced by MeshedSurface< Face >::write(), surfMesh::write(), UnsortedMeshedSurface< Face >::write(), MeshedSurfaceProxy< Face >::write(), and proxySurfaceWriter::write().
|
inline |
Return const access to the points.
Definition at line 138 of file MeshedSurfaceProxy.H.
Referenced by AC3DsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inline |
Return const access to the faces.
Definition at line 144 of file MeshedSurfaceProxy.H.
Referenced by AC3DsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< 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 152 of file MeshedSurfaceProxy.H.
Referenced by AC3DsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
Const access to the faceMap, zero-sized when unused.
Definition at line 158 of file MeshedSurfaceProxy.H.
Referenced by OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inline |
Use faceMap?
Definition at line 164 of file MeshedSurfaceProxy.H.
References List< T >::size().
Referenced by AC3DsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), X3DsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inlinevirtual |
Generic write routine. Chooses writer based on extension.
Definition at line 172 of file MeshedSurfaceProxy.H.
References Foam::name(), and MeshedSurfaceProxy< Face >::write().
Write to database.
Definition at line 88 of file MeshedSurfaceProxy.C.
References Foam::endl(), Foam::faceMap(), InfoInFunction, Foam::isDir(), mkDir(), IOobject::name(), dimensioned< Type >::name(), Foam::name(), points, Foam::reorder(), Time::timePath(), Time::writeCompression(), IOobject::writeEndDivider(), Time::writeFormat(), and IOobject::writeHeader().