if (aPrs3d) {
SUIT_ResourceMgr* aResourceMgr = GetResourceMgr();
int aValue = aResourceMgr->integerValue("VISU","BuildDefaultPrs3d",0);
+ if(aResourceMgr->booleanValue("VISU","display_only",false)){
+ theModule->OnEraseAll();
+ }
+
if (!aValue) {
if (TDlg* aDlg = new TDlg(theModule)) { // dialog box in creation mode
aDlg->initFromPrsObject(aPrs3d);
if (runAndWait(aDlg,IsDlgModal) && (aDlg->storeToPrsObject(aPrs3d))) {
+ if(aResourceMgr->booleanValue("VISU","display_only",false)){
+ if(SPlot2d_Viewer* aPlot2d = GetPlot2dViewer(theModule, false)) aPlot2d->EraseAll();
+ }
// Optionally, create table and curves for cut lines
QApplication::setOverrideCursor(Qt::waitCursor);
CreateCurves( theModule,
aViewWindow = GetViewWindow<TViewer>(theModule);
// Display created presentation.
if (aViewWindow) {
- if(aResourceMgr->booleanValue("VISU","display_only",false)){
- theModule->OnEraseAll();
- }
PublishInView(theModule, aPrs3d, aViewWindow, /*highlight = */true);
aViewWindow->onFitAll();