onCreateViewManager()
{
SalomeApp_Application* anApp = getApp();
+ SUIT_ResourceMgr* aResourceMgr = anApp->resourceMgr();
VVTK_ViewManager* aViewManager = new VVTK_ViewManager( anApp->activeStudy(), anApp->desktop() );
VVTK_Viewer* aViewer = (VVTK_Viewer*)aViewManager->getViewModel();
+ aViewer->setBackgroundColor( aResourceMgr->colorValue( "VTKViewer", "background", aViewer->backgroundColor() ) );
+ aViewer->setTrihedronSize( aResourceMgr->integerValue( "VTKViewer", "trihedron_size", aViewer->trihedronSize() ),
+ aResourceMgr->booleanValue( "VTKViewer", "relative_size", aViewer->trihedronRelative() ) );
new LightApp_VTKSelector( aViewer, anApp->selectionMgr() );
anApp->addViewManager( aViewManager );
- //aViewer->setBackgroundColor( Qt::darkGreen );
aViewManager->createViewWindow();
return aViewer->getViewManager();
VVTK_ViewWindow
::setBackgroundColor( const QColor& theColor )
{
- if( myMainWindow1->GetInteractor()->hasFocus() )
- myMainWindow1->SetBackgroundColor( theColor );
- else if( myMainWindow2->GetInteractor()->hasFocus() )
- myMainWindow2->SetBackgroundColor( theColor );
- else
- myMainWindow->SetBackgroundColor( theColor );
+ myMainWindow1->SetBackgroundColor( theColor );
+ myMainWindow2->SetBackgroundColor( theColor );
}