OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

MeshedSurfaceProxy< Face > Class Template Reference

A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats. More...

Inheritance diagram for MeshedSurfaceProxy< Face >:
Collaboration diagram for MeshedSurfaceProxy< Face >:

List of all members.


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 pointFieldpoints () 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.

Detailed Description

template<class Face>
class Foam::MeshedSurfaceProxy< Face >

A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.

Source files

Definition at line 59 of file MeshedSurfaceProxy.H.


Constructor & Destructor Documentation

MeshedSurfaceProxy ( const pointField pointLst,
const List< Face > &  faceLst,
const List< surfZone > &  zoneLst = List<surfZone>(),
const List< label > &  faceMap = List<label>() 
) [inline]

Construct from component references.

Definition at line 214 of file MeshedSurfaceProxy.C.

~MeshedSurfaceProxy (  )  [inline, virtual]

Definition at line 231 of file MeshedSurfaceProxy.C.


Member Function Documentation

ClassName ( "MeshedSurfaceProxy< Face >"   ) 

Runtime type information.

Foam::wordHashSet writeTypes (  )  [inline, static]

The file format types that can be written via MeshedSurfaceProxy.

Definition at line 28 of file MeshedSurfaceProxy.C.

bool canWriteType ( const word ext,
const bool  verbose = false 
) [inline, static]

Can this file format type be written via MeshedSurfaceProxy?

Definition at line 36 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 MeshedSurfaceProxy< Face >::write().

Here is the caller graph for this function:

const pointField& points (  )  const [inline]

Return const access to the points.

Definition at line 129 of file MeshedSurfaceProxy.H.

const List<Face>& faces (  )  const [inline]

Return const access to the faces.

Definition at line 135 of file MeshedSurfaceProxy.H.

const List<surfZone>& surfZones (  )  const [inline]

Const access to the surface zones.

If zones are defined, they must be contiguous and cover the entire surface

Definition at line 145 of file MeshedSurfaceProxy.H.

const List<label>& faceMap (  )  const [inline]

Const access to the faceMap, zero-sized when unused.

Definition at line 151 of file MeshedSurfaceProxy.H.

bool useFaceMap (  )  const [inline]

Use faceMap?

Definition at line 157 of file MeshedSurfaceProxy.H.

virtual void write ( const fileName name  )  const [inline, virtual]

Generic write routine. Chooses writer based on extension.

Definition at line 165 of file MeshedSurfaceProxy.H.

References MeshedSurfaceProxy< Face >::write().

Here is the call graph for this function:

void write ( const Time t,
const word surfName = "" 
) const [inline, virtual]

Write to database.

Definition at line 82 of file MeshedSurfaceProxy.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd