Salome HOME
1d32a429751d8a4d4cd8c165f8851f82ba7cde46
[modules/hexablock.git] / src / HEXABLOCK / HexCloner.hxx
1 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
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.
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 "Hex_defines.hxx"
26 #include "hexa_base.hxx"
27
28 #include <map>
29
30 BEGIN_NAMESPACE_HEXA
31
32 class HEXABLOCKENGINE_EXPORT Cloner 
33 {
34 public:
35     Cloner (Matrix* mat);
36
37     void erase ();
38
39     Hexa*     clonerHexa     (Hexa*     orig);
40     Quad*     clonerQuad     (Quad*     orig);
41     Edge*     clonerEdge     (Edge*     orig);
42     Vertex*   clonerVertex   (Vertex*   orig);
43     Elements* clonerElements (Elements* orig);
44
45 private:
46     Matrix* matrice;
47     std::map <Hexa*,   Hexa*>   clone_hexa;
48     std::map <Quad*,   Quad*>   clone_quad;
49     std::map <Edge*,   Edge*>   clone_edge;
50     std::map <Vertex*, Vertex*> clone_vertex;
51 };
52 END_NAMESPACE_HEXA
53 #endif