X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Hypothesis.cxx;h=4f447be5bf53ecf3fd06ab546045a21565589376;hb=044316562025258053dd5cdd512918e98fa55c58;hp=cc179d31cdf03bf812855d84a6235978f9308d3c;hpb=c63ee099ad2b149bd70136839c973e8910137bc5;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Hypothesis.cxx b/src/SMESH/SMESH_Hypothesis.cxx index cc179d31c..4f447be5b 100644 --- a/src/SMESH/SMESH_Hypothesis.cxx +++ b/src/SMESH/SMESH_Hypothesis.cxx @@ -26,13 +26,13 @@ // Module : SMESH // $Header$ -using namespace std; -using namespace std; #include "SMESH_Hypothesis.hxx" #include "SMESH_Gen.hxx" #include "SMESH_subMesh.hxx" #include "utilities.h" +using namespace std; + //============================================================================= /*! * @@ -51,6 +51,7 @@ SMESH_Hypothesis::SMESH_Hypothesis(int hypId, _type = PARAM_ALGO; _shapeType = 0; // to be set by algo with TopAbs_Enum _param_algo_dim = -1; // to be set by algo parameter + _parameters = string(); } //============================================================================= @@ -126,14 +127,6 @@ void SMESH_Hypothesis::NotifySubMeshesHypothesisModification() { SMESH_Mesh* mesh = (*itm).second; mesh->NotifySubMeshesHypothesisModification( this ); -// const list& subMeshes = -// mesh->GetSubMeshUsingHypothesis(this); - -// //for all subMeshes using hypothesis - -// list::const_iterator its; -// for (its = subMeshes.begin(); its != subMeshes.end(); its++) -// (*its)->ComputeStateEngine(SMESH_subMesh::MODIF_HYP); } } @@ -145,9 +138,6 @@ void SMESH_Hypothesis::NotifySubMeshesHypothesisModification() const char* SMESH_Hypothesis::GetLibName() const { -// MESSAGE("SMESHDS_Hypothesis::GetLibName"); -// SCRUTE(_LibName); -// SCRUTE(&_LibName); return _libName.c_str(); } @@ -159,6 +149,61 @@ const char* SMESH_Hypothesis::GetLibName() const void SMESH_Hypothesis::SetLibName(const char* theLibName) { -// MESSAGE("SMESHDS_Hypothesis::SetLibName"); _libName = string(theLibName); } + +//============================================================================= +/*! + * + */ +//============================================================================= +void SMESH_Hypothesis::SetParameters(const char *theParameters) +{ + string aNewParameters(theParameters); + if(aNewParameters.size()==0 && _parameters.size()==0) + aNewParameters = " "; + if(_parameters.size()>0) + _parameters +="|"; + _parameters +=aNewParameters; + SetLastParameters(theParameters); +} + +//============================================================================= +/*! + * + */ +//============================================================================= +void SMESH_Hypothesis::ClearParameters() +{ + _parameters = string(); +} + +//============================================================================= +/*! + * + */ +//============================================================================= +char* SMESH_Hypothesis::GetParameters() const +{ + return (char*)_parameters.c_str(); +} + +//============================================================================= +/*! + * + */ +//============================================================================= +char* SMESH_Hypothesis::GetLastParameters() const +{ + return (char*)_lastParameters.c_str(); +} + +//============================================================================= +/*! + * + */ +//============================================================================= +void SMESH_Hypothesis::SetLastParameters(const char* theParameters) +{ + _lastParameters = string(theParameters); +}