]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/INTERP_KERNEL/RegionNode.hxx
Salome HOME
caae983532a6493cf323381c2d0d1b4090772c08
[tools/medcoupling.git] / src / INTERP_KERNEL / RegionNode.hxx
1 //  Copyright (C) 2007-2008  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 #ifndef __REGIONNODE_HXX__
20 #define __REGIONNODE_HXX__
21
22 #include "MeshRegion.hxx"
23
24 namespace INTERP_KERNEL
25 {
26
27   /**
28    * \brief Class containing a tuplet of a source region and a target region. 
29    * This is used as the object to put on the stack in the depth-first search
30    * in the bounding-box filtering process.
31    */
32   template<class ConnType>
33   class RegionNode
34   {
35   public:
36     
37     RegionNode() { }
38     
39     ~RegionNode() { }
40     
41     /**
42      *  Accessor to source region
43      *
44      * @return   reference to source region
45      */
46     MeshRegion<ConnType>& getSrcRegion() { return _srcRegion; }
47
48     /**
49      *  Accessor to target region
50      *
51      * @return   reference to target region
52      */
53     MeshRegion<ConnType>& getTargetRegion() { return _targetRegion; }
54
55   private:
56     
57     /// source region
58     MeshRegion<ConnType> _srcRegion;          
59     
60     /// target region
61     MeshRegion<ConnType> _targetRegion;       
62
63   };
64
65 }
66
67 #endif