IPAL19824, Smoothing. Selection of edges is incorrect - they must be inactive.

IPAL10421, Needless selection in 3D Viewer during Smoothing operation
This commit is contained in:
dmv 2008-06-23 10:18:26 +00:00
parent aa7d5e89a0
commit b9f577609d

View File

@ -663,13 +663,15 @@ void SMESHGUI_SmoothingDlg::SetEditCurrentArgument()
myEditCurrentArgument = LineEditElements; myEditCurrentArgument = LineEditElements;
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if (CheckBoxMesh->isChecked()) { if (CheckBoxMesh->isChecked()) {
mySelectionMgr->setSelectionModes(ActorSelection); // mySelectionMgr->setSelectionModes(ActorSelection);
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter); if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
} else { } else {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(CellSelection); aViewWindow->SetSelectionMode(FaceSelection);
} }
} else if (send == SelectNodesButton) { } else if (send == SelectNodesButton) {
LineEditNodes->clear(); LineEditNodes->clear();
myEditCurrentArgument = LineEditNodes; myEditCurrentArgument = LineEditNodes;
SMESH::SetPointRepresentation(true); SMESH::SetPointRepresentation(true);
@ -715,7 +717,8 @@ void SMESHGUI_SmoothingDlg::ActivateThisDialog()
mySMESHGUI->SetActiveDialogBox(this); mySMESHGUI->SetActiveDialogBox(this);
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(CellSelection); aViewWindow->SetSelectionMode(FaceSelection);
SelectionIntoArgument(); SelectionIntoArgument();
} }
@ -769,12 +772,14 @@ void SMESHGUI_SmoothingDlg::onSelectMesh (bool toSelectMesh)
SMESH::SetPointRepresentation(false); SMESH::SetPointRepresentation(false);
if (toSelectMesh) { if (toSelectMesh) {
mySelectionMgr->setSelectionModes(ActorSelection); if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(ActorSelection);
// mySelectionMgr->setSelectionModes(ActorSelection);
mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter); mySelectionMgr->installFilter(myMeshOrSubMeshOrGroupFilter);
LineEditElements->setReadOnly(true); LineEditElements->setReadOnly(true);
} else { } else {
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI )) if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
aViewWindow->SetSelectionMode(CellSelection); aViewWindow->SetSelectionMode(FaceSelection);
LineEditElements->setReadOnly(false); LineEditElements->setReadOnly(false);
onTextChange(LineEditElements->text()); onTextChange(LineEditElements->text());
} }