X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_NodesDlg.cxx;fp=src%2FSMESHGUI%2FSMESHGUI_NodesDlg.cxx;h=2300c93eba09d656105c52a7b823ee2b5a34fde3;hb=333415e6c9f744a167d1779d9e74e073f122e88c;hp=14479191292f79f2d5739754f96f7dd71b27549f;hpb=e5ed5aa5ac8420179aa37e3bf3a175e22ef3f69a;p=modules%2Fsmesh.git diff --git a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx index 144791912..2300c93eb 100644 --- a/src/SMESHGUI/SMESHGUI_NodesDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_NodesDlg.cxx @@ -49,6 +49,8 @@ #include #include +#include + #include #include #include @@ -88,14 +90,15 @@ namespace SMESH { - void AddNode( SMESH::SMESH_Mesh_ptr theMesh, float x, float y, float z, const QStringList& theParameters ) + void AddNode( SMESH::SMESH_Mesh_ptr theMesh, float x, float y, float z, + SalomeApp_Notebook* theNotebook, const QStringList& theParameters ) { SUIT_OverrideCursor wc; try { _PTR(SObject) aSobj = SMESH::FindSObject( theMesh ); SMESH::SMESH_MeshEditor_var aMeshEditor = theMesh->GetMeshEditor(); aMeshEditor->AddNode( x, y, z ); - //asl: theMesh->SetParameters( theParameters.join(":").toLatin1().constData() ); + theNotebook->setParameters( theMesh, theParameters ); _PTR(Study) aStudy = GetActiveStudyDocument(); CORBA::Long anId = aStudy->StudyId(); if (TVisualObjPtr aVisualObj = SMESH::GetVisualObj( anId, aSobj->GetID().c_str() ) ) { @@ -417,7 +420,7 @@ bool SMESHGUI_NodesDlg::ClickOnApply() aParameters << SpinBox_Z->text(); mySimulation->SetVisibility( false ); - SMESH::AddNode( myMesh, x, y, z, aParameters ); + SMESH::AddNode( myMesh, x, y, z, getNotebook(), aParameters ); SMESH::SetPointRepresentation( true ); // select myMesh