1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::fileFormats::VTKsurfaceFormat
28 Provide a means of writing VTK legacy format.
29 The output is never sorted by zone.
34 \*---------------------------------------------------------------------------*/
36 #ifndef VTKsurfaceFormat_H
37 #define VTKsurfaceFormat_H
39 #include "MeshedSurface.H"
40 #include "MeshedSurfaceProxy.H"
41 #include "UnsortedMeshedSurface.H"
42 #include "VTKsurfaceFormatCore.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class VTKsurfaceFormat Declaration
53 \*---------------------------------------------------------------------------*/
56 class VTKsurfaceFormat
58 public MeshedSurface<Face>,
59 public VTKsurfaceFormatCore
61 // Private Member Functions
63 //- Write header information about number of polygon points
64 static void writeHeaderPolygons(Ostream&, const UList<Face>&);
66 //- Disallow default bitwise copy construct
67 VTKsurfaceFormat(const VTKsurfaceFormat<Face>&);
69 //- Disallow default bitwise assignment
70 void operator=(const VTKsurfaceFormat<Face>&);
82 virtual ~VTKsurfaceFormat()
90 //- Write surface mesh components by proxy
93 const fileName&, const MeshedSurfaceProxy<Face>&
96 //- Write UnsortedMeshedSurface, the output remains unsorted
99 const fileName&, const UnsortedMeshedSurface<Face>&
104 virtual void write(Ostream& os) const
106 write(os, MeshedSurfaceProxy<Face>(*this));
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace fileFormats
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 # include "VTKsurfaceFormat.C"
122 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 // ************************************************************************* //