00001 // Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE 00002 // 00003 // This library is free software; you can redistribute it and/or 00004 // modify it under the terms of the GNU Lesser General Public 00005 // License as published by the Free Software Foundation; either 00006 // version 2.1 of the License. 00007 // 00008 // This library is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 // Lesser General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU Lesser General Public 00014 // License along with this library; if not, write to the Free Software 00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00016 // 00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com 00018 // 00019 00020 // SMESH StdMeshers_TrianglePreference 00021 // File : StdMeshers_TrianglePreference.cxx 00022 // Module : SMESH 00023 // 00024 #include "StdMeshers_TrianglePreference.hxx" 00025 #include "utilities.h" 00026 00027 using namespace std; 00028 00029 //============================================================================= 00033 //============================================================================= 00034 00035 StdMeshers_TrianglePreference::StdMeshers_TrianglePreference(int hypId, 00036 int studyId, 00037 SMESH_Gen * gen) 00038 :SMESH_Hypothesis(hypId, studyId, gen) 00039 { 00040 _name = "TrianglePreference"; 00041 _param_algo_dim = -2; // auxiliary used by StdMeshers_Quadrangle_2D 00042 } 00043 00044 //============================================================================= 00048 //============================================================================= 00049 00050 StdMeshers_TrianglePreference::~StdMeshers_TrianglePreference() 00051 { 00052 } 00053 00054 //============================================================================= 00058 //============================================================================= 00059 00060 ostream & StdMeshers_TrianglePreference::SaveTo(ostream & save) 00061 { 00062 return save; 00063 } 00064 00065 //============================================================================= 00069 //============================================================================= 00070 00071 istream & StdMeshers_TrianglePreference::LoadFrom(istream & load) 00072 { 00073 return load; 00074 } 00075 00076 //============================================================================= 00080 //============================================================================= 00081 00082 ostream & operator <<(ostream & save, StdMeshers_TrianglePreference & hyp) 00083 { 00084 return hyp.SaveTo( save ); 00085 } 00086 00087 //============================================================================= 00091 //============================================================================= 00092 00093 istream & operator >>(istream & load, StdMeshers_TrianglePreference & hyp) 00094 { 00095 return hyp.LoadFrom( load ); 00096 } 00097 //================================================================================ 00106 //================================================================================ 00107 00108 bool StdMeshers_TrianglePreference::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, 00109 const TopoDS_Shape& /*theShape*/) 00110 { 00111 return false; 00112 } 00113 00114 //================================================================================ 00119 //================================================================================ 00120 00121 bool StdMeshers_TrianglePreference::SetParametersByDefaults(const TDefaults& /*dflts*/, 00122 const SMESH_Mesh* /*theMesh*/) 00123 { 00124 return false; 00125 } 00126