From: eap Date: Fri, 21 Sep 2012 14:37:32 +0000 (+0000) Subject: SetQuadAllowed() is not needed any more as now it is in the base class X-Git-Tag: V6_6_0a1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f24fcd75c99b0f3f0f92600762e7645f9a357403;p=plugins%2Fnetgenplugin.git SetQuadAllowed() is not needed any more as now it is in the base class --- diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.cxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.cxx index 0a488ad..588d03f 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.cxx @@ -39,8 +39,8 @@ using namespace std; //============================================================================= NETGENPlugin_Hypothesis_2D::NETGENPlugin_Hypothesis_2D (int hypId, int studyId, SMESH_Gen * gen) - : NETGENPlugin_Hypothesis(hypId, studyId, gen), - _quadAllowed (GetDefaultQuadAllowed()) + : NETGENPlugin_Hypothesis(hypId, studyId, gen)/*, + _quadAllowed (GetDefaultQuadAllowed())*/ { _name = "NETGEN_Parameters_2D"; _param_algo_dim = 2; @@ -51,56 +51,56 @@ NETGENPlugin_Hypothesis_2D::NETGENPlugin_Hypothesis_2D (int hypId, int studyId, * */ //============================================================================= -void NETGENPlugin_Hypothesis_2D::SetQuadAllowed(bool theVal) -{ - if (theVal != _quadAllowed) - { - _quadAllowed = theVal; - NotifySubMeshesHypothesisModification(); - } -} +// void NETGENPlugin_Hypothesis_2D::SetQuadAllowed(bool theVal) +// { +// if (theVal != _quadAllowed) +// { +// _quadAllowed = theVal; +// NotifySubMeshesHypothesisModification(); +// } +// } -//============================================================================= -/*! - * - */ -//============================================================================= -bool NETGENPlugin_Hypothesis_2D::GetDefaultQuadAllowed() -{ - return false; -} +// //============================================================================= +// /*! +// * +// */ +// //============================================================================= +// bool NETGENPlugin_Hypothesis_2D::GetDefaultQuadAllowed() +// { +// return false; +// } -//============================================================================= -/*! - * - */ -//============================================================================= -ostream & NETGENPlugin_Hypothesis_2D::SaveTo(ostream & save) -{ - NETGENPlugin_Hypothesis::SaveTo(save); +// //============================================================================= +// /*! +// * +// */ +// //============================================================================= +// ostream & NETGENPlugin_Hypothesis_2D::SaveTo(ostream & save) +// { +// NETGENPlugin_Hypothesis::SaveTo(save); - save << " " << (int)_quadAllowed; +// save << " " << (int)_quadAllowed; - return save; -} +// return save; +// } -//============================================================================= -/*! - * - */ -//============================================================================= -istream & NETGENPlugin_Hypothesis_2D::LoadFrom(istream & load) -{ - NETGENPlugin_Hypothesis::LoadFrom(load); +// //============================================================================= +// /*! +// * +// */ +// //============================================================================= +// istream & NETGENPlugin_Hypothesis_2D::LoadFrom(istream & load) +// { +// NETGENPlugin_Hypothesis::LoadFrom(load); - bool isOK = true; - int is; +// bool isOK = true; +// int is; - isOK = (load >> is); - if (isOK) - _quadAllowed = (bool) is; - else - load.clear(ios::badbit | load.rdstate()); +// isOK = (load >> is); +// if (isOK) +// _quadAllowed = (bool) is; +// else +// load.clear(ios::badbit | load.rdstate()); - return load; -} +// return load; +// } diff --git a/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.hxx b/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.hxx index babfc87..77382b0 100644 --- a/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.hxx +++ b/src/NETGENPlugin/NETGENPlugin_Hypothesis_2D.hxx @@ -45,16 +45,16 @@ public: NETGENPlugin_Hypothesis_2D(int hypId, int studyId, SMESH_Gen * gen); - void SetQuadAllowed(bool theVal); - bool GetQuadAllowed() const { return _quadAllowed; } - static bool GetDefaultQuadAllowed(); + // void SetQuadAllowed(bool theVal); + // bool GetQuadAllowed() const { return _quadAllowed; } + // static bool GetDefaultQuadAllowed(); // Persistence - virtual ostream & SaveTo(ostream & save); - virtual istream & LoadFrom(istream & load); + // virtual ostream & SaveTo(ostream & save); + // virtual istream & LoadFrom(istream & load); -private: - bool _quadAllowed; +// private: +// bool _quadAllowed; }; #endif