mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-27 18:00:35 +05:00
Correction.
This commit is contained in:
parent
a31c59e74c
commit
05b87d9cef
@ -990,6 +990,16 @@ void GeometryGUI::activateModule( SUIT_Study* study )
|
|||||||
for ( vm = VTKViewManagers.first(); vm; vm = VTKViewManagers.next() )
|
for ( vm = VTKViewManagers.first(); vm; vm = VTKViewManagers.next() )
|
||||||
myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
|
myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
|
||||||
|
|
||||||
|
// disable OCC selectors
|
||||||
|
getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
|
||||||
|
for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
|
||||||
|
sr->setEnabled(true);
|
||||||
|
|
||||||
|
// disable VTK selectors
|
||||||
|
getApp()->selectionMgr()->setEnabled( false, VTKViewer_Viewer::Type() );
|
||||||
|
for ( SalomeApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() )
|
||||||
|
sr->setEnabled(true);
|
||||||
|
|
||||||
// SetSettings() ?????????????
|
// SetSettings() ?????????????
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1018,6 +1028,7 @@ void GeometryGUI::deactivateModule( SUIT_Study* study )
|
|||||||
getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
|
getApp()->selectionMgr()->setEnabled( true, OCCViewer_Viewer::Type() );
|
||||||
|
|
||||||
myVTKSelectors.clear();
|
myVTKSelectors.clear();
|
||||||
|
getApp()->selectionMgr()->setEnabled( true, VTKViewer_Viewer::Type() );
|
||||||
|
|
||||||
SalomeApp_Module::deactivateModule( study );
|
SalomeApp_Module::deactivateModule( study );
|
||||||
}
|
}
|
||||||
@ -1345,11 +1356,6 @@ void GeometryGUI::onWindowActivated( SUIT_ViewWindow* win )
|
|||||||
const bool ViewOCC = ( win->getViewManager()->getType() == OCCViewer_Viewer::Type() );
|
const bool ViewOCC = ( win->getViewManager()->getType() == OCCViewer_Viewer::Type() );
|
||||||
// const bool ViewVTK = ( win->getViewManager()->getType() == VTKViewer_Viewer::Type() );
|
// const bool ViewVTK = ( win->getViewManager()->getType() == VTKViewer_Viewer::Type() );
|
||||||
|
|
||||||
// disable OCC selectors
|
|
||||||
getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
|
|
||||||
for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
|
|
||||||
sr->setEnabled(true);
|
|
||||||
|
|
||||||
// disable non-OCC viewframe menu commands
|
// disable non-OCC viewframe menu commands
|
||||||
// action( 404 )->setEnabled( ViewOCC ); // SKETCHER
|
// action( 404 )->setEnabled( ViewOCC ); // SKETCHER
|
||||||
action( 603 )->setEnabled( ViewOCC ); // SuppressFace
|
action( 603 )->setEnabled( ViewOCC ); // SuppressFace
|
||||||
@ -1384,11 +1390,21 @@ void GeometryGUI::onViewManagerAdded( SUIT_ViewManager* vm )
|
|||||||
{
|
{
|
||||||
SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
|
SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
|
||||||
myOCCSelectors.append( new GEOMGUI_OCCSelector( ((OCCViewer_ViewManager*)vm)->getOCCViewer(), sm ) );
|
myOCCSelectors.append( new GEOMGUI_OCCSelector( ((OCCViewer_ViewManager*)vm)->getOCCViewer(), sm ) );
|
||||||
|
|
||||||
|
// disable OCC selectors
|
||||||
|
getApp()->selectionMgr()->setEnabled( false, OCCViewer_Viewer::Type() );
|
||||||
|
for ( GEOMGUI_OCCSelector* sr = myOCCSelectors.first(); sr; sr = myOCCSelectors.next() )
|
||||||
|
sr->setEnabled(true);
|
||||||
}
|
}
|
||||||
else if ( vm->getType() == VTKViewer_Viewer::Type() )
|
else if ( vm->getType() == VTKViewer_Viewer::Type() )
|
||||||
{
|
{
|
||||||
SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
|
SalomeApp_SelectionMgr* sm = getApp()->selectionMgr();
|
||||||
myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
|
myVTKSelectors.append( new SalomeApp_VTKSelector( (SVTK_Viewer*)vm->getViewModel(), sm ) );
|
||||||
|
|
||||||
|
// disable VTK selectors
|
||||||
|
getApp()->selectionMgr()->setEnabled( false, VTKViewer_Viewer::Type() );
|
||||||
|
for ( SalomeApp_VTKSelector* sr = myVTKSelectors.first(); sr; sr = myVTKSelectors.next() )
|
||||||
|
sr->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user