Fix for bug IPAL9834(SMESH ? selection in transformation does not work for group displayed only).

This commit is contained in:
mzn 2007-01-12 15:55:37 +00:00
parent 8595d10d2f
commit b4457771a2
7 changed files with 9 additions and 8 deletions

View File

@ -833,7 +833,7 @@ void SMESHGUI_ExtrusionAlongPathDlg::SelectionIntoArgument()
// try to get selected elements IDs
QString aString;
//int aNbUnits = SMESH::GetNameOfSelectedElements(mySelectionMgr, aString);
SMESH::GetNameOfSelectedElements(mySelector, myMeshActor->getIO(), aString);
SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
ElementsLineEdit->setText(aString);
}
} else if (myEditCurrentArgument == PathMeshLineEdit) {

View File

@ -618,7 +618,7 @@ void SMESHGUI_ExtrusionDlg::SelectionIntoArgument()
aNbElements = anElementsIds->length();
}
} else {
aNbElements = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
aNbElements = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
myElementsId = aString;
}

View File

@ -692,7 +692,7 @@ void SMESHGUI_RevolutionDlg::SelectionIntoArgument()
aNbUnits = anElementsIds->length();
}
} else {
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
myElementsId = aString;
}

View File

@ -622,7 +622,7 @@ void SMESHGUI_RotationDlg::SelectionIntoArgument()
aNbUnits = anElementsIds->length();
}
} else {
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
myElementsId = aString;
}

View File

@ -31,6 +31,7 @@
#include "SMESHGUI.h"
#include "SMESHGUI_Utils.h"
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_MeshUtils.h"
#include "SMESHGUI_IdValidator.h"
#include "SMESH_Actor.h"
@ -771,7 +772,7 @@ void SMESHGUI_SewingDlg::SelectionIntoArgument (bool isSelectionChanged)
return;
Handle(SALOME_InteractiveObject) IO = aList.First();
myMesh = SMESH::IObjectToInterface<SMESH::SMESH_Mesh>(IO);
myMesh = SMESH::GetMeshByIO(IO); //@ SMESH::IObjectToInterface<SMESH::SMESH_Mesh>(IO);
myActor = SMESH::FindActorByEntry(aList.First()->getEntry());
if (myMesh->_is_nil() || !myActor)
@ -786,7 +787,7 @@ void SMESHGUI_SewingDlg::SelectionIntoArgument (bool isSelectionChanged)
if (aNbUnits != 1)
return;
} else {
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
if (aNbUnits < 1)
return;
}

View File

@ -610,7 +610,7 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
aNbUnits = anElementsIds->length();
}
} else {
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
myElementsId = aString;
}
} else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myActor) {

View File

@ -687,7 +687,7 @@ void SMESHGUI_SymmetryDlg::SelectionIntoArgument()
aNbUnits = anElementsIds->length();
}
} else {
aNbUnits = SMESH::GetNameOfSelectedElements( mySelector, myActor->getIO(), aString);
aNbUnits = SMESH::GetNameOfSelectedElements( mySelector, IO, aString);
myElementsId = aString;
}