mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-14 10:11:33 +05:00
0023337: [CEA 1942] When we modify a mesh hypothesis, the display in the 3D view is not deleted immediatly
This commit is contained in:
parent
b9c863fcfc
commit
c3869b4805
@ -29,6 +29,7 @@
|
||||
#include "SMESHGUI_HypothesesUtils.h"
|
||||
#include "SMESHGUI_Utils.h"
|
||||
#include "SMESHGUI_SpinBox.h"
|
||||
#include "SMESHGUI_VTKUtils.h"
|
||||
|
||||
// SALOME KERNEL includes
|
||||
#include <SALOMEDSClient_Study.hxx>
|
||||
@ -40,9 +41,16 @@
|
||||
#include <SUIT_OverrideCursor.h>
|
||||
#include <SUIT_ResourceMgr.h>
|
||||
#include <SUIT_Session.h>
|
||||
#include <SVTK_ViewWindow.h>
|
||||
#include <SalomeApp_IntSpinBox.h>
|
||||
#include <SalomeApp_Tools.h>
|
||||
|
||||
#include <SMESH_Actor.h>
|
||||
#include <VTKViewer_Algorithm.h>
|
||||
|
||||
// VTK includes
|
||||
#include <vtkRenderer.h>
|
||||
|
||||
// Qt includes
|
||||
#include <QFrame>
|
||||
#include <QLineEdit>
|
||||
@ -324,6 +332,23 @@ void SMESHGUI_GenericHypothesisCreator::onDialogFinished( int result )
|
||||
myDlg->close();
|
||||
//delete myDlg; since WA_DeleteOnClose==true
|
||||
myDlg = 0;
|
||||
//imn: to fix the bug 23357. Workaround for fixed problem with repaint in VTK_viewer object.
|
||||
if (SVTK_ViewWindow* vf = SMESH::GetCurrentVtkView()) {
|
||||
VTK::ActorCollectionCopy aCopy( vf->getRenderer()->GetActors() );
|
||||
vtkActorCollection* anAllActors = aCopy.GetActors();
|
||||
if( anAllActors ) {
|
||||
anAllActors->InitTraversal();
|
||||
while( vtkActor* aVTKActor = anAllActors->GetNextActor() ) {
|
||||
if( SMESH_Actor* anActor = SMESH_Actor::SafeDownCast( aVTKActor ) ) {
|
||||
if( anActor->GetVisibility() && anActor->GetMapper() ) {
|
||||
anActor->Highlight( true );
|
||||
anActor->Highlight( false );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
vf->Repaint( false );
|
||||
}
|
||||
emit finished( result );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user