msgid "VISU_DISP_ONLY"
msgstr "Display only on creation"
+msgid "VISU_AUTOMATIC_FIT_ALL"
+msgstr "Automatic Fit All"
+
msgid "VISU_SHRINK"
msgstr "Shrink"
aScalarMap->SetMapScale(aPercents);
aScalarMap->UpdateActor(anActor);
aViewWindow->getRenderWindow()->Render();
+ aViewWindow->Repaint();
usleep(aTemp);
} catch (std::exception& exc) {
INFOS("Follow exception was occured :\n" << exc.what());
addPreference( tr( "VISU_DISP_ONLY" ), representGr,
LightApp_Preferences::Bool, "VISU", "display_only" );
+ addPreference( "", representGr, LightApp_Preferences::Space );
+
+ addPreference( tr( "VISU_AUTOMATIC_FIT_ALL" ), representGr,
+ LightApp_Preferences::Bool, "VISU", "automatic_fit_all" );
// TAB: 3D Cache ; group: "Cache properties"
int cacheTab = addPreference( tr( "3D Cache" ) );
storeToPrsObject(myCutPlanes);
myCutPlanes->GetPipeLine()->Update();
createPlanes();
- vf->onFitAll();
+ if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)) {
+ vf->onFitAll();
+ }
} else {
deletePlanes();
vf->Repaint();
VisuGUI* aVisuGUI = dynamic_cast <VisuGUI*>(myModule);
if ( myPrsCopy->GetNumberOfActors() == 0 ) {
PublishInView(aVisuGUI, myPrsCopy, aViewWindow);
-// if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
+ if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
aViewWindow->onFitAll();
int aPos = VISU::GetFreePositionOfDefaultScalarBar(aVisuGUI, aViewWindow);
VISU::AddScalarBarPosition(aVisuGUI, aViewWindow, myPrsCopy, aPos);
aDlg->storeToPrsObject( aPrs3d );
SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
PublishInView(theModule, aPrs3d, aViewWindow);
-// if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
+ if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
aViewWindow->onFitAll();
int aPos = VISU::GetFreePositionOfDefaultScalarBar(theModule, aViewWindow);
VISU::AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
static void renderViewFrame (SVTK_ViewWindow* vw)
{
if (vw) {
- vw->getRenderer()->ResetCameraClippingRange();
+// vw->getRenderer()->ResetCameraClippingRange();
vw->Repaint();
}
}
renderViewFrame(myViewWindow);
- if (fitall) {
+ if (fitall && VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)) {
myPreviewActor->SetInfinitive(false);
myViewWindow->onFitAll();
myPreviewActor->SetInfinitive(true);
// Display created presentation.
if (aViewWindow) {
PublishInView(theModule, aPrs3d, aViewWindow);
- aViewWindow->onFitAll();
+ if(GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)){
+ aViewWindow->onFitAll();
+ }
AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
}
}
}
aPlot->Repaint();
- aPlot->fitAll();
+ if(GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)){
+ aPlot->fitAll();
+ }
}
//------------------------------------------------------------
if(av)(const_cast<VisuGUI*>(av))->OnEraseAll();
}
PublishMeshInView(theModule, pPresent, theViewWindow);
- SetFitAll(theViewWindow);
+ if(GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false)){
+ SetFitAll(theViewWindow);
+ }
#ifdef CHECKTIME
timer.Stop();
MESSAGE("VisuGUI::CreateMesh() - DISPLAY MESH");