mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-30 19: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
|
// try to get selected elements IDs
|
||||||
QString aString;
|
QString aString;
|
||||||
//int aNbUnits = SMESH::GetNameOfSelectedElements(mySelectionMgr, aString);
|
//int aNbUnits = SMESH::GetNameOfSelectedElements(mySelectionMgr, aString);
|
||||||
SMESH::GetNameOfSelectedElements(mySelector, myMeshActor->getIO(), aString);
|
SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
ElementsLineEdit->setText(aString);
|
ElementsLineEdit->setText(aString);
|
||||||
}
|
}
|
||||||
} else if (myEditCurrentArgument == PathMeshLineEdit) {
|
} else if (myEditCurrentArgument == PathMeshLineEdit) {
|
||||||
|
@ -618,7 +618,7 @@ void SMESHGUI_ExtrusionDlg::SelectionIntoArgument()
|
|||||||
aNbElements = anElementsIds->length();
|
aNbElements = anElementsIds->length();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
aNbElements = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbElements = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
myElementsId = aString;
|
myElementsId = aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -692,7 +692,7 @@ void SMESHGUI_RevolutionDlg::SelectionIntoArgument()
|
|||||||
aNbUnits = anElementsIds->length();
|
aNbUnits = anElementsIds->length();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
myElementsId = aString;
|
myElementsId = aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -622,7 +622,7 @@ void SMESHGUI_RotationDlg::SelectionIntoArgument()
|
|||||||
aNbUnits = anElementsIds->length();
|
aNbUnits = anElementsIds->length();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
myElementsId = aString;
|
myElementsId = aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@
|
|||||||
#include "SMESHGUI.h"
|
#include "SMESHGUI.h"
|
||||||
#include "SMESHGUI_Utils.h"
|
#include "SMESHGUI_Utils.h"
|
||||||
#include "SMESHGUI_VTKUtils.h"
|
#include "SMESHGUI_VTKUtils.h"
|
||||||
|
#include "SMESHGUI_MeshUtils.h"
|
||||||
#include "SMESHGUI_IdValidator.h"
|
#include "SMESHGUI_IdValidator.h"
|
||||||
|
|
||||||
#include "SMESH_Actor.h"
|
#include "SMESH_Actor.h"
|
||||||
@ -771,7 +772,7 @@ void SMESHGUI_SewingDlg::SelectionIntoArgument (bool isSelectionChanged)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Handle(SALOME_InteractiveObject) IO = aList.First();
|
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());
|
myActor = SMESH::FindActorByEntry(aList.First()->getEntry());
|
||||||
|
|
||||||
if (myMesh->_is_nil() || !myActor)
|
if (myMesh->_is_nil() || !myActor)
|
||||||
@ -786,7 +787,7 @@ void SMESHGUI_SewingDlg::SelectionIntoArgument (bool isSelectionChanged)
|
|||||||
if (aNbUnits != 1)
|
if (aNbUnits != 1)
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
if (aNbUnits < 1)
|
if (aNbUnits < 1)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -610,7 +610,7 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
|
|||||||
aNbUnits = anElementsIds->length();
|
aNbUnits = anElementsIds->length();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
|
aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
|
||||||
myElementsId = aString;
|
myElementsId = aString;
|
||||||
}
|
}
|
||||||
} else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myActor) {
|
} else if (myEditCurrentArgument == LineEditNodes && !myMesh->_is_nil() && myActor) {
|
||||||
|
@ -687,7 +687,7 @@ void SMESHGUI_SymmetryDlg::SelectionIntoArgument()
|
|||||||
aNbUnits = anElementsIds->length();
|
aNbUnits = anElementsIds->length();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
aNbUnits = SMESH::GetNameOfSelectedElements( mySelector, myActor->getIO(), aString);
|
aNbUnits = SMESH::GetNameOfSelectedElements( mySelector, IO, aString);
|
||||||
myElementsId = aString;
|
myElementsId = aString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user