// 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;
+
//=============================================================================
/*!
*
_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();
}
//=============================================================================
{
SMESH_Mesh* mesh = (*itm).second;
mesh->NotifySubMeshesHypothesisModification( this );
-// const list<SMESH_subMesh*>& subMeshes =
-// mesh->GetSubMeshUsingHypothesis(this);
-
-// //for all subMeshes using hypothesis
-
-// list<SMESH_subMesh*>::const_iterator its;
-// for (its = subMeshes.begin(); its != subMeshes.end(); its++)
-// (*its)->ComputeStateEngine(SMESH_subMesh::MODIF_HYP);
}
}
const char* SMESH_Hypothesis::GetLibName() const
{
-// MESSAGE("SMESHDS_Hypothesis::GetLibName");
-// SCRUTE(_LibName);
-// SCRUTE(&_LibName);
return _libName.c_str();
}
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);
+}