Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
SimpleSVGMeshExporter.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* SimpleSVGMeshExporter.h (C) 2000-2025 */
9/* */
10/* SVG mesh writer. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_SIMPLESVGMESHEXPORTER_H
13#define ARCANE_CORE_SIMPLESVGMESHEXPORTER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19#include <iosfwd>
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30/*!
31 * \brief Exporting an SVG mesh.
32 *
33 * This class only works for 2D meshes. Only the `x` and `y` components
34 * are considered. After creating an instance, it is possible
35 * to call the writeGroup() method to export the entities associated with the cell
36 * group (nodes, faces, and cells).
37 */
38class ARCANE_CORE_EXPORT SimpleSVGMeshExporter
39{
40 class Impl;
41
42 public:
43
44 /*!
45 * \brief Create an instance associated with the \a ofile stream.
46 *
47 * The \a ofile stream must remain valid throughout the lifetime of the instance.
48 */
49 SimpleSVGMeshExporter(std::ostream& ofile);
51 SimpleSVGMeshExporter& operator=(const SimpleSVGMeshExporter& rhs) = delete;
53
54 /*!
55 * \brief Exports the entities of the \a cells group.
56 *
57 * Currently, it is not possible to call this method multiple times.
58 */
59 void write(const CellGroup& cells);
60
61 private:
62
63 Impl* m_p;
64};
65
66/*---------------------------------------------------------------------------*/
67/*---------------------------------------------------------------------------*/
68
69} // End namespace Arcane
70
71/*---------------------------------------------------------------------------*/
72/*---------------------------------------------------------------------------*/
73
74#endif
Declarations of types on entities.
SimpleSVGMeshExporter(std::ostream &ofile)
Create an instance associated with the ofile stream.
void write(const CellGroup &cells)
Exports the entities of the cells group.
ItemGroupT< Cell > CellGroup
Group of cells.
Definition ItemTypes.h:184
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --