mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-21 13:25:36 +05:00
Fix on Bug GVIEW10224
Elements that selected from SubMesh or Group are not highlighted by yellow in 3D. It was necessary to call SVTK_Selector::SetSelectionMode
This commit is contained in:
parent
8a4791fe83
commit
ec274b5b0c
@ -716,8 +716,6 @@ void SMESHGUI_GroupDlg::onListSelectionChanged()
|
|||||||
SALOME_ListIO aList;
|
SALOME_ListIO aList;
|
||||||
aList.Append(myActor->getIO());
|
aList.Append(myActor->getIO());
|
||||||
mySelectionMgr->setSelectedObjects(aList,false);
|
mySelectionMgr->setSelectedObjects(aList,false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
|
||||||
aViewWindow->highlight( myActor->getIO(), true, true );
|
|
||||||
}
|
}
|
||||||
myIsBusy = false;
|
myIsBusy = false;
|
||||||
}
|
}
|
||||||
@ -1096,12 +1094,27 @@ void SMESHGUI_GroupDlg::onAdd()
|
|||||||
|
|
||||||
SMESH::ElementType aType = SMESH::ALL;
|
SMESH::ElementType aType = SMESH::ALL;
|
||||||
switch(myTypeId) {
|
switch(myTypeId) {
|
||||||
case 0: aType = SMESH::NODE; break;
|
case 0:
|
||||||
case 1: aType = SMESH::EDGE; break;
|
aType = SMESH::NODE;
|
||||||
case 2: aType = SMESH::FACE; break;
|
mySelector->SetSelectionMode(NodeSelection);
|
||||||
case 3: aType = SMESH::VOLUME; break;
|
break;
|
||||||
|
case 1:
|
||||||
|
aType = SMESH::EDGE;
|
||||||
|
mySelector->SetSelectionMode(EdgeSelection);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
aType = SMESH::FACE;
|
||||||
|
mySelector->SetSelectionMode(FaceSelection);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
aType = SMESH::VOLUME;
|
||||||
|
mySelector->SetSelectionMode(VolumeSelection);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
mySelector->SetSelectionMode(ActorSelection);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (myCurrentLineEdit == 0) {
|
if (myCurrentLineEdit == 0) {
|
||||||
//if (aNbSel != 1) { myIsBusy = false; return; }
|
//if (aNbSel != 1) { myIsBusy = false; return; }
|
||||||
QString aListStr = "";
|
QString aListStr = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user