1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::fileFormats::VTKsurfaceFormat
29 Provide a means of writing VTK legacy format.
30 The output is never sorted by zone.
35 \*---------------------------------------------------------------------------*/
37 #ifndef VTKsurfaceFormat_H
38 #define VTKsurfaceFormat_H
40 #include "MeshedSurface.H"
41 #include "MeshedSurfaceProxy.H"
42 #include "UnsortedMeshedSurface.H"
43 #include "VTKsurfaceFormatCore.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 /*---------------------------------------------------------------------------*\
53 Class VTKsurfaceFormat Declaration
54 \*---------------------------------------------------------------------------*/
57 class VTKsurfaceFormat
59 public MeshedSurface<Face>,
60 public VTKsurfaceFormatCore
62 // Private Member Functions
64 //- Write header information about number of polygon points
65 static void writeHeaderPolygons(Ostream&, const UList<Face>&);
67 //- Disallow default bitwise copy construct
68 VTKsurfaceFormat(const VTKsurfaceFormat<Face>&);
70 //- Disallow default bitwise assignment
71 void operator=(const VTKsurfaceFormat<Face>&);
84 virtual ~VTKsurfaceFormat()
92 //- Write surface mesh components by proxy
95 const fileName&, const MeshedSurfaceProxy<Face>&
98 //- Write UnsortedMeshedSurface, the output remains unsorted
101 const fileName&, const UnsortedMeshedSurface<Face>&
106 virtual void write(Ostream& os) const
108 write(os, MeshedSurfaceProxy<Face>(*this));
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 } // End namespace fileFormats
116 } // End namespace Foam
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 # include "VTKsurfaceFormat.C"
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128 // ************************************************************************* //