mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
Fix for bug IPAL9834(SMESH ? selection in transformation does not work for group displayed only).
This commit is contained in:
parent
8595d10d2f
commit
b4457771a2
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user