mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-12 15:47:27 +05:00
PAL8978 - selection is lost after some operations
This commit is contained in:
parent
4d423efd78
commit
25c935e78a
@ -199,7 +199,7 @@ void SMESHGUI_EditMeshDlg::ClickOnApply()
|
|||||||
} catch(...) {
|
} catch(...) {
|
||||||
}
|
}
|
||||||
|
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -220,7 +220,7 @@ void SMESHGUI_EditMeshDlg::ClickOnOk()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_EditMeshDlg::ClickOnCancel()
|
void SMESHGUI_EditMeshDlg::ClickOnCancel()
|
||||||
{
|
{
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
|
@ -414,7 +414,7 @@ bool SMESHGUI_MeshPatternDlg::onApply()
|
|||||||
bool toCreatePolygons = myCreatePolygonsChk->isChecked();
|
bool toCreatePolygons = myCreatePolygonsChk->isChecked();
|
||||||
bool toCreatePolyedrs = myCreatePolyedrsChk->isChecked();
|
bool toCreatePolyedrs = myCreatePolyedrsChk->isChecked();
|
||||||
if ( myPattern->MakeMesh( myMesh, toCreatePolygons, toCreatePolyedrs ) ) {
|
if ( myPattern->MakeMesh( myMesh, toCreatePolygons, toCreatePolyedrs ) ) {
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
bool autoUpdate = SMESHGUI::automaticUpdate();
|
bool autoUpdate = SMESHGUI::automaticUpdate();
|
||||||
if (!isRefine() && autoUpdate) {
|
if (!isRefine() && autoUpdate) {
|
||||||
_PTR(SObject) aSO = SMESH::FindSObject(myMesh.in());
|
_PTR(SObject) aSO = SMESH::FindSObject(myMesh.in());
|
||||||
|
@ -322,7 +322,7 @@ void SMESHGUI_MoveNodesDlg::onOk()
|
|||||||
//=======================================================================
|
//=======================================================================
|
||||||
void SMESHGUI_MoveNodesDlg::onClose()
|
void SMESHGUI_MoveNodesDlg::onClose()
|
||||||
{
|
{
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->SetSelectionMode(ActorSelection);
|
aViewWindow->SetSelectionMode(ActorSelection);
|
||||||
|
@ -438,7 +438,7 @@ void SMESHGUI_MultiEditDlg::onClose()
|
|||||||
SMESH::RemoveFilters();
|
SMESH::RemoveFilters();
|
||||||
SMESH::SetPickable();
|
SMESH::SetPickable();
|
||||||
|
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
|
|
||||||
reject();
|
reject();
|
||||||
@ -942,7 +942,7 @@ bool SMESHGUI_MultiEditDlg::onApply()
|
|||||||
bool aResult = process(aMeshEditor, anIds.inout());
|
bool aResult = process(aMeshEditor, anIds.inout());
|
||||||
if (aResult) {
|
if (aResult) {
|
||||||
if (myActor) {
|
if (myActor) {
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::UpdateView();
|
SMESH::UpdateView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -448,7 +448,7 @@ void SMESHGUI_RotationDlg::ClickOnCancel()
|
|||||||
{
|
{
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->SetSelectionMode(ActorSelection);
|
aViewWindow->SetSelectionMode(ActorSelection);
|
||||||
|
@ -593,7 +593,7 @@ void SMESHGUI_SewingDlg::ClickOnOk()
|
|||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESHGUI_SewingDlg::ClickOnCancel()
|
void SMESHGUI_SewingDlg::ClickOnCancel()
|
||||||
{
|
{
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->SetSelectionMode(ActorSelection);
|
aViewWindow->SetSelectionMode(ActorSelection);
|
||||||
|
@ -264,7 +264,7 @@ void SMESHGUI_SingleEditDlg::onClose()
|
|||||||
{
|
{
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->SetSelectionMode(ActorSelection);
|
aViewWindow->SetSelectionMode(ActorSelection);
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
disconnect(mySMESHGUI, 0, this, 0);
|
disconnect(mySMESHGUI, 0, this, 0);
|
||||||
mySMESHGUI->ResetState();
|
mySMESHGUI->ResetState();
|
||||||
|
@ -421,7 +421,7 @@ void SMESHGUI_SmoothingDlg::ClickOnCancel()
|
|||||||
{
|
{
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::SetPickable(); // ???
|
SMESH::SetPickable(); // ???
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
|
@ -511,7 +511,7 @@ void SMESHGUI_SymmetryDlg::ClickOnCancel()
|
|||||||
{
|
{
|
||||||
disconnect(mySelectionMgr, 0, this, 0);
|
disconnect(mySelectionMgr, 0, this, 0);
|
||||||
mySelectionMgr->clearFilters();
|
mySelectionMgr->clearFilters();
|
||||||
mySelectionMgr->clearSelected();
|
//mySelectionMgr->clearSelected();
|
||||||
SMESH::SetPointRepresentation(false);
|
SMESH::SetPointRepresentation(false);
|
||||||
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
if ( SVTK_ViewWindow* aViewWindow = SMESH::GetViewWindow( mySMESHGUI ))
|
||||||
aViewWindow->SetSelectionMode(ActorSelection);
|
aViewWindow->SetSelectionMode(ActorSelection);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user