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... | |
Public Member Functions inherited from surfaceFormatsCore | |
surfaceFormatsCore () | |
Construct null. More... | |
virtual | ~surfaceFormatsCore () |
Destructor. 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) |
static fileName | localMeshFileName (const word &surfName="") |
Return the local file name (within time directory) More... | |
static fileName | findMeshInstance (const Time &, const word &surfName="") |
Find instance with surfName. More... | |
static fileName | findMeshFile (const Time &, const word &surfName="") |
Find mesh file with surfName. 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 73 of file MeshedSurface.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 218 of file MeshedSurfaceProxy.C.
Referenced by MeshedSurfaceProxy< Face >::write().
|
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.
References MeshedSurfaceProxy< Face >::canWriteType().
Referenced by surfaceWriter::New().
|
static |
Can this file format type be written via MeshedSurfaceProxy?
Definition at line 45 of file MeshedSurfaceProxy.C.
References Foam::endl(), Foam::exit(), fileName::ext(), Foam::FatalError, FatalErrorInFunction, InfoInFunction, Foam::name(), Foam::nl, and MeshedSurfaceProxy< Face >::write().
Referenced by MeshedSurfaceProxy< Face >::writeTypes().
declareMemberFunctionSelectionTable | ( | void | , |
MeshedSurfaceProxy< Face > | , | ||
write | , | ||
fileExtension | , | ||
(const fileName &name, const MeshedSurfaceProxy< Face > &surf) | , | ||
(name, surf) | |||
) |
|
static |
Write to file.
Referenced by MeshedSurfaceProxy< Face >::canWriteType(), MeshedSurfaceProxy< Face >::write(), UnsortedMeshedSurface< Face >::write(), and MeshedSurface< Foam::face >::write().
|
inline |
Return const access to the points.
Definition at line 138 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inline |
Return const access to the faces.
Definition at line 144 of file MeshedSurfaceProxy.H.
References MeshedSurfaceProxy< Face >::surfZones().
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), OFSsurfaceFormat< 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 MeshedSurfaceProxy< Face >::faces(), X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), OFSsurfaceFormat< 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 X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), OFSsurfaceFormat< Face >::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inline |
Use faceMap?
Definition at line 164 of file MeshedSurfaceProxy.H.
Referenced by X3DsurfaceFormat< Face >::write(), WRLsurfaceFormat< Face >::write(), SMESHsurfaceFormat< Face >::write(), OBJsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), OFFsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), STARCDsurfaceFormat< Face >::write(), OFSsurfaceFormat< 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 MeshedSurfaceProxy< Face >::write().
Write to database.
Definition at line 89 of file MeshedSurfaceProxy.C.
References Foam::endl(), Foam::faceMap(), InfoInFunction, Foam::isDir(), MeshedSurfaceProxy< Face >::MeshedSurfaceProxy(), Foam::mkDir(), Foam::name(), IOobject::name(), points, Foam::reorder(), Time::timeName(), Time::timePath(), IOobject::writeEndDivider(), and IOobject::writeHeader().