1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. 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>&);
83 virtual ~VTKsurfaceFormat()
91 //- Write surface mesh components by proxy
94 const fileName&, const MeshedSurfaceProxy<Face>&
97 //- Write UnsortedMeshedSurface, the output remains unsorted
100 const fileName&, const UnsortedMeshedSurface<Face>&
105 virtual void write(Ostream& os) const
107 write(os, MeshedSurfaceProxy<Face>(*this));
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 } // End namespace fileFormats
115 } // End namespace Foam
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 # include "VTKsurfaceFormat.C"
123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 // ************************************************************************* //