Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/smesh.git] / src / StdMeshers / StdMeshers_Propagation.cxx
1 //  SMESH SMESH : implementaion of SMESH idl descriptions
2 //
3 //  Copyright (C) 2003  CEA
4 //
5 //  This library is free software; you can redistribute it and/or
6 //  modify it under the terms of the GNU Lesser General Public
7 //  License as published by the Free Software Foundation; either
8 //  version 2.1 of the License.
9 //
10 //  This library is distributed in the hope that it will be useful,
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 //  Lesser General Public License for more details.
14 //
15 //  You should have received a copy of the GNU Lesser General Public
16 //  License along with this library; if not, write to the Free Software
17 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 //
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 //
21 //
22 //
23 //  File   : StdMeshers_Propagation.cxx
24 //  Module : SMESH
25 //  $Header$
26
27 #include "StdMeshers_Propagation.hxx"
28
29 #include "utilities.h"
30
31 using namespace std;
32
33 //=============================================================================
34 /*!
35  *
36  */
37 //=============================================================================
38 StdMeshers_Propagation::StdMeshers_Propagation (int hypId, int studyId,
39                                                 SMESH_Gen * gen)
40      : SMESH_Hypothesis(hypId, studyId, gen)
41 {
42   _name = GetName();
43   _param_algo_dim = -1; // 1D auxiliary
44 }
45
46 //=============================================================================
47 /*!
48  *
49  */
50 //=============================================================================
51 StdMeshers_Propagation::~StdMeshers_Propagation()
52 {
53 }
54
55 //=============================================================================
56 /*!
57  *
58  */
59 //=============================================================================
60
61 ostream & StdMeshers_Propagation::SaveTo (ostream & save)
62 {
63   return save;
64 }
65
66 //=============================================================================
67 /*!
68  *
69  */
70 //=============================================================================
71 istream & StdMeshers_Propagation::LoadFrom (istream & load)
72 {
73   return load;
74 }
75
76 //=============================================================================
77 /*!
78  *
79  */
80 //=============================================================================
81 ostream & operator << (ostream & save, StdMeshers_Propagation & hyp)
82 {
83   return hyp.SaveTo(save);
84 }
85
86 //=============================================================================
87 /*!
88  *
89  */
90 //=============================================================================
91 istream & operator >> (istream & load, StdMeshers_Propagation & hyp)
92 {
93   return hyp.LoadFrom(load);
94 }
95
96 //=============================================================================
97 /*!
98  *  GetName
99  */
100 //=============================================================================
101 std::string StdMeshers_Propagation::GetName ()
102 {
103   return "Propagation";
104 }
105 //================================================================================
106 /*!
107  * \brief Initialize my parameter values by the mesh built on the geometry
108  * \param theMesh - the built mesh
109  * \param theShape - the geometry of interest
110  * \retval bool - true if parameter values have been successfully defined
111  *
112  * Just return false as this hypothesis does not have parameters values
113  */
114 //================================================================================
115
116 bool StdMeshers_Propagation::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/,
117                                                  const TopoDS_Shape& /*theShape*/)
118 {
119   return false;
120 }