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

WRLsurfaceFormat.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::fileFormats::WRLsurfaceFormat
00027 
00028 Description
00029     Provide a means of writing VRML97 (wrl) format.
00030 
00031 SourceFiles
00032     WRLsurfaceFormat.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef WRLsurfaceFormat_H
00037 #define WRLsurfaceFormat_H
00038 
00039 #include "MeshedSurface.H"
00040 #include "MeshedSurfaceProxy.H"
00041 #include "UnsortedMeshedSurface.H"
00042 #include "WRLsurfaceFormatCore.H"
00043 
00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00045 
00046 namespace Foam
00047 {
00048 namespace fileFormats
00049 {
00050 
00051 /*---------------------------------------------------------------------------*\
00052                       Class WRLsurfaceFormat Declaration
00053 \*---------------------------------------------------------------------------*/
00054 
00055 template<class Face>
00056 class WRLsurfaceFormat
00057 :
00058     public MeshedSurface<Face>,
00059     public WRLsurfaceFormatCore
00060 
00061 {
00062     // Private Member Functions
00063 
00064         //- Disallow default bitwise copy construct
00065         WRLsurfaceFormat(const WRLsurfaceFormat<Face>&);
00066 
00067         //- Disallow default bitwise assignment
00068         void operator=(const WRLsurfaceFormat<Face>&);
00069 
00070 public:
00071 
00072     // Constructors
00073 
00074         //- Construct null
00075         WRLsurfaceFormat();
00076 
00077 
00078     // Destructor
00079 
00080         virtual ~WRLsurfaceFormat()
00081         {}
00082 
00083 
00084     // Member Functions
00085 
00086         //- Write surface mesh components by proxy
00087         static void write(const fileName&, const MeshedSurfaceProxy<Face>&);
00088 
00089         //- Write object file
00090         virtual void write(const fileName& name) const
00091         {
00092             write(name, MeshedSurfaceProxy<Face>(*this));
00093         }
00094 
00095 };
00096 
00097 
00098 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00099 
00100 } // End namespace fileFormats
00101 } // End namespace Foam
00102 
00103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00104 
00105 #ifdef NoRepository
00106 #   include "WRLsurfaceFormat.C"
00107 #endif
00108 
00109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00110 
00111 #endif
00112 
00113 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd