1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // SMESH StdMeshers : implementaion of SMESH idl descriptions
23 // File : StdMeshers_NotConformAllowed.cxx
24 // Author : Paul RASCLE, EDF
27 #include "StdMeshers_NotConformAllowed.hxx"
28 #include "utilities.h"
32 //=============================================================================
36 //=============================================================================
38 StdMeshers_NotConformAllowed::StdMeshers_NotConformAllowed(int hypId, int studyId, SMESH_Gen* gen)
39 : SMESH_Hypothesis(hypId, studyId, gen)
41 _name = "NotConformAllowed";
45 //=============================================================================
49 //=============================================================================
51 StdMeshers_NotConformAllowed::~StdMeshers_NotConformAllowed()
55 //=============================================================================
59 //=============================================================================
61 ostream & StdMeshers_NotConformAllowed::SaveTo(ostream & save)
66 //=============================================================================
70 //=============================================================================
72 istream & StdMeshers_NotConformAllowed::LoadFrom(istream & load)
74 return load >> (*this);
77 //=============================================================================
81 //=============================================================================
83 ostream & operator << (ostream & save, StdMeshers_NotConformAllowed & hyp)
88 //=============================================================================
92 //=============================================================================
94 istream & operator >> (istream & load, StdMeshers_NotConformAllowed & hyp)
98 //================================================================================
100 * \brief Initialize my parameter values by the mesh built on the geometry
101 * \param theMesh - the built mesh
102 * \param theShape - the geometry of interest
103 * \retval bool - true if parameter values have been successfully defined
105 * Just return false as this hypothesis does not have parameters values
107 //================================================================================
109 bool StdMeshers_NotConformAllowed::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/,
110 const TopoDS_Shape& /*theShape*/)
114 //================================================================================
116 * \brief Initialize my parameter values by default parameters.
117 * \retval bool - true if parameter values have been successfully defined
119 //================================================================================
121 bool StdMeshers_NotConformAllowed::SetParametersByDefaults(const TDefaults& /*dflts*/,
122 const SMESH_Mesh* /*theMesh*/)