if (anIO.IsNull() || !anIO->hasEntry())
return;
+ // create a VTK view window if it does not exist
+ GetViewWindow( this, /*create=*/true );
+
CreateMesh(this, anIO);
}
if (CheckLock(aStudy))
return;
+ // create a VTK view window if it does not exist
+ GetViewWindow( this, /*create=*/true );
+
// Get selected SObject
SalomeApp_SelectionMgr* aSelectionMgr = GetSelectionMgr(this);
SALOME_ListIO aListIO;
{
if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs");
+ SVTK_ViewWindow* vw = GetViewWindow( this, /*create=*/true );
+
QApplication::setOverrideCursor(Qt::waitCursor);
SALOME_ListIO aList;
SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
if(aPrsObject){
if(MYDEBUG) MESSAGE("VisuGUI::OnDisplayPrs : Prs3d object");
UpdateViewer( this, aPrsObject );
- if (SVTK_ViewWindow* vw = GetViewWindow( this )) {
+ if ( vw ) {
vw->highlight(anIO, 1);
}
continue;
}
}
}
- if (SVTK_ViewWindow* vw = GetViewWindow( this )) {
+ if ( vw ) {
vw->getRenderer()->ResetCameraClippingRange();
vw->Repaint();
}
QApplication::setOverrideCursor(Qt::waitCursor);
- SVTK_ViewWindow* vw = GetViewWindow(this);
- if (vw) vw->unHighlightAll();
+ SVTK_ViewWindow* vw = GetViewWindow( this );
+ if (vw)
+ vw->unHighlightAll();
SALOME_ListIO aList;
SalomeApp_SelectionMgr* mgr = GetSelectionMgr(this);
for ( SALOME_ListIteratorOfListIO it( aList ); it.More(); it.Next() ) {
anIO = it.Value();
CORBA::Object_var anObject = GetSelectedObj( GetAppStudy(this), anIO->getEntry() );
- ErasePrs(this, anObject, false);
+ ErasePrs( this, anObject, false );
}
- if (vw) vw->Repaint();
+ if (vw)
+ vw->Repaint();
QApplication::restoreOverrideCursor();
}
") or (selcount>0 and $type in {'VISU::TMESH' " + aPrsAll + "})";
mgr->setRule( action( VISU_ERASE ), aRule + "and (isVisible=true)", true );// TODO: aRule.arg(" and isVisible=1"), true );
- mgr->setRule( action( VISU_DISPLAY ), aRule + "and (isVisible=false)", true );// TODO: aRule.arg(" and isVisible=0"), true );
+ mgr->setRule( action( VISU_DISPLAY ), aRule + "and ((isVisible=false and isActiveView=true) or (isActiveView=false))", true );// TODO: aRule.arg(" and isVisible=0"), true );
mgr->setRule( action( VISU_DISPLAY_ONLY ), aRule, true );
aRule = "selcount>0 and $type in {'VISU::TMESH' " + aPrsAll + "}";