Salome HOME
Merge from V5_1_main 14/05/2010
[modules/smesh.git] / src / StdMeshers / StdMeshers_TrianglePreference.cxx
1 //  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
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 //  SMESH StdMeshers_TrianglePreference 
21 //  File   : StdMeshers_TrianglePreference.cxx
22 //  Module : SMESH
23 //
24 #include "StdMeshers_TrianglePreference.hxx"
25 #include "utilities.h"
26
27 using namespace std;
28
29 //=============================================================================
30 /*!
31  *  
32  */
33 //=============================================================================
34
35 StdMeshers_TrianglePreference::StdMeshers_TrianglePreference(int         hypId,
36                                                                  int         studyId,
37                                                                  SMESH_Gen * gen)
38      :SMESH_Hypothesis(hypId, studyId, gen)
39 {
40   _name = "TrianglePreference";
41   _param_algo_dim = -2; // auxiliary used by StdMeshers_Quadrangle_2D
42 }
43
44 //=============================================================================
45 /*!
46  *  
47  */
48 //=============================================================================
49
50 StdMeshers_TrianglePreference::~StdMeshers_TrianglePreference()
51 {
52 }
53
54 //=============================================================================
55 /*!
56  *  
57  */
58 //=============================================================================
59
60 ostream & StdMeshers_TrianglePreference::SaveTo(ostream & save)
61 {
62   return save;
63 }
64
65 //=============================================================================
66 /*!
67  *  
68  */
69 //=============================================================================
70
71 istream & StdMeshers_TrianglePreference::LoadFrom(istream & load)
72 {
73   return load;
74 }
75
76 //=============================================================================
77 /*!
78  *  
79  */
80 //=============================================================================
81
82 ostream & operator <<(ostream & save, StdMeshers_TrianglePreference & hyp)
83 {
84   return hyp.SaveTo( save );
85 }
86
87 //=============================================================================
88 /*!
89  *  
90  */
91 //=============================================================================
92
93 istream & operator >>(istream & load, StdMeshers_TrianglePreference & hyp)
94 {
95   return hyp.LoadFrom( load );
96 }
97 //================================================================================
98 /*!
99  * \brief Initialize my parameter values by the mesh built on the geometry
100  * \param theMesh - the built mesh
101  * \param theShape - the geometry of interest
102  * \retval bool - true if parameter values have been successfully defined
103  *
104  * Just return false as this hypothesis does not have parameters values
105  */
106 //================================================================================
107
108 bool StdMeshers_TrianglePreference::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/,
109                                                           const TopoDS_Shape& /*theShape*/)
110 {
111   return false;
112 }
113
114 //================================================================================
115 /*!
116  * \brief Initialize my parameter values by default parameters.
117  *  \retval bool - true if parameter values have been successfully defined
118  */
119 //================================================================================
120
121 bool StdMeshers_TrianglePreference::SetParametersByDefaults(const TDefaults&  /*dflts*/,
122                                                             const SMESH_Mesh* /*theMesh*/)
123 {
124   return false;
125 }
126