1 // SMESH SMESH : implementaion of SMESH idl descriptions
3 // Copyright (C) 2003 CEA
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.
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.
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
19 // See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
23 // File : StdMeshers_Propagation.cxx
27 #include "StdMeshers_Propagation.hxx"
29 #include "utilities.h"
33 //=============================================================================
37 //=============================================================================
38 StdMeshers_Propagation::StdMeshers_Propagation (int hypId, int studyId,
40 : SMESH_Hypothesis(hypId, studyId, gen)
43 _param_algo_dim = -1; // 1D auxiliary
46 //=============================================================================
50 //=============================================================================
51 StdMeshers_Propagation::~StdMeshers_Propagation()
55 //=============================================================================
59 //=============================================================================
61 ostream & StdMeshers_Propagation::SaveTo (ostream & save)
66 //=============================================================================
70 //=============================================================================
71 istream & StdMeshers_Propagation::LoadFrom (istream & load)
76 //=============================================================================
80 //=============================================================================
81 ostream & operator << (ostream & save, StdMeshers_Propagation & hyp)
83 return hyp.SaveTo(save);
86 //=============================================================================
90 //=============================================================================
91 istream & operator >> (istream & load, StdMeshers_Propagation & hyp)
93 return hyp.LoadFrom(load);
96 //=============================================================================
100 //=============================================================================
101 std::string StdMeshers_Propagation::GetName ()
103 return "Propagation";
105 //================================================================================
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
112 * Just return false as this hypothesis does not have parameters values
114 //================================================================================
116 bool StdMeshers_Propagation::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/,
117 const TopoDS_Shape& /*theShape*/)