aFieldName.latin1(),
aTimeStampId.toInt(),
aPublishInStudyMode);
-
- VisuGUI_DeformedShapeDlg* aDlg = new VisuGUI_DeformedShapeDlg (theModule);
- aDlg->initFromPrsObject(aPrs3d, true);
- aDlg->UseMagn->setChecked(true);
- VisuGUI_DialogRunner r(aDlg);
- int dlgResult = r.run( false );
-
- if ( dlgResult == 0 )
- DeletePrs3d(theModule,aPrs3d);
- else {
- aDlg->storeToPrsObject( aPrs3d );
- SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
- PublishInView(theModule, aPrs3d, aViewWindow);
- if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
- aViewWindow->onFitAll();
- int aPos = VISU::GetFreePositionOfDefaultScalarBar(theModule, aViewWindow);
- VISU::AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
+
+ if (aPrs3d) {
+ VisuGUI_DeformedShapeDlg* aDlg = new VisuGUI_DeformedShapeDlg (theModule);
+ aDlg->initFromPrsObject(aPrs3d, true);
+ aDlg->UseMagn->setChecked(true);
+ VisuGUI_DialogRunner r(aDlg);
+ int dlgResult = r.run( false );
+
+ if ( dlgResult == 0 )
+ DeletePrs3d(theModule,aPrs3d);
+ else {
+ aDlg->storeToPrsObject( aPrs3d );
+ SVTK_ViewWindow* aViewWindow = VISU::GetActiveViewWindow<SVTK_ViewWindow>();
+ PublishInView(theModule, aPrs3d, aViewWindow);
+ if(VISU::GetResourceMgr()->booleanValue("VISU","automatic_fit_all",false))
+ aViewWindow->onFitAll();
+ int aPos = VISU::GetFreePositionOfDefaultScalarBar(theModule, aViewWindow);
+ VISU::AddScalarBarPosition(theModule, aViewWindow, aPrs3d, aPos);
+ }
+
+ VISU::UpdateObjBrowser(theModule, true, aTimeStamp);
+ delete aDlg;
}
-
- VISU::UpdateObjBrowser(theModule, true, aTimeStamp);
- delete aDlg;
}
}
}