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

OFFsurfaceFormat< Face > Class Template Reference

Provide a means of reading/writing Geomview OFF polyList format. More...

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

List of all members.


Public Member Functions

 OFFsurfaceFormat (const fileName &)
 Construct from file name.
virtual ~OFFsurfaceFormat ()
 Destructor.
virtual bool read (const fileName &)
 Read from file.
virtual void write (const fileName &name) const
 Write object.

Static Public Member Functions

static autoPtr< MeshedSurface
< Face > > 
New (const fileName &name)
 Read file and return surface.
static void write (const fileName &, const MeshedSurfaceProxy< Face > &)
 Write surface mesh components by proxy.

Detailed Description

template<class Face>
class Foam::fileFormats::OFFsurfaceFormat< Face >

Provide a means of reading/writing Geomview OFF polyList format.

See also:
The Geoview file format information: http://www.geomview.org/docs/html/OFF.html#OFF
Note:
When reading, the optional colorspec is ignored. When writing, it is set to the zone number (integer).
Source files

Definition at line 59 of file OFFsurfaceFormat.H.


Constructor & Destructor Documentation

OFFsurfaceFormat ( const fileName &  filename  )  [inline]

Construct from file name.

Definition at line 29 of file OFFsurfaceFormat.C.

virtual ~OFFsurfaceFormat (  )  [inline, virtual]

Destructor.

Definition at line 93 of file OFFsurfaceFormat.H.


Member Function Documentation

static autoPtr<MeshedSurface<Face> > New ( const fileName &  name  )  [inline, static]

Read file and return surface.

Reimplemented from MeshedSurface< Face >.

Definition at line 83 of file OFFsurfaceFormat.H.

void write ( const fileName &  filename,
const MeshedSurfaceProxy< Face > &  surf 
) [inline, static]

Write surface mesh components by proxy.

Definition at line 144 of file OFFsurfaceFormat.C.

bool read ( const fileName &  filename  )  [inline, virtual]

Read from file.

Reimplemented from MeshedSurface< Face >.

Definition at line 41 of file OFFsurfaceFormat.C.

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

Write object.

Reimplemented from MeshedSurface< Face >.

Definition at line 106 of file OFFsurfaceFormat.H.


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