Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / HEXABLOCK / HexCloner.hxx
1 // Copyright (C) 2009-2024  CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // class : Le Reproducteur de blocks
21
22 #ifndef __CLONER_H
23 #define __CLONER_H
24
25 #include "hexa_base.hxx"
26
27 #include <map>
28
29 BEGIN_NAMESPACE_HEXA
30
31 class HexaExport Cloner 
32 {
33 public:
34     Cloner (Matrix* mat);
35
36     void erase ();
37
38     Hexa*     clonerHexa     (Hexa*     orig);
39     Quad*     clonerQuad     (Quad*     orig);
40     Edge*     clonerEdge     (Edge*     orig);
41     Vertex*   clonerVertex   (Vertex*   orig);
42     Elements* clonerElements (Elements* orig);
43
44 private:
45     Matrix* matrice;
46     std::map <Hexa*,   Hexa*>   clone_hexa;
47     std::map <Quad*,   Quad*>   clone_quad;
48     std::map <Edge*,   Edge*>   clone_edge;
49     std::map <Vertex*, Vertex*> clone_vertex;
50 };
51 END_NAMESPACE_HEXA
52 #endif