}
QApplication::setOverrideCursor( Qt::waitCursor );
- try{
- for (int j=0 ; j<aCycles; j++) {
- for (int i=0 ; i<=aSteps; i++) {
+ for (int j = 0; j < aCycles; j++) {
+ for (int i = 0; i <= aSteps; i++) {
+ try {
float aPercents = float(i)/aSteps;
aPrsObject->SetMapScale(aPercents);
aPrsObject->UpdateActor(aActor);
vf->getRW()->getRenderWindow()->Render();
usleep(aTemp);
+ } catch (std::exception& exc) {
+ INFOS("Follow exception was occured :\n" << exc.what());
+ } catch (...) {
+ INFOS("Unknown exception was occured!");
}
}
- }catch(std::exception& exc){
- INFOS("Follow exception was occured :\n"<<exc.what());
- }catch(...){
- INFOS("Unknown exception was occured!");
}
QApplication::restoreOverrideCursor();
}
if(aPrs == NULL) continue;
if (thePrs == aPrs) {
aResActor = anVISUActor->GetParent();
- thePrs->UpdateActor(aResActor);
- aResActor->VisibilityOn();
-
+ try {
+ thePrs->UpdateActor(aResActor);
+ aResActor->VisibilityOn();
+ } catch (std::runtime_error& ex) {
+ aResActor->VisibilityOff();
+ INFOS(ex.what());
+ QAD_MessageBox::warn1(QAD_Application::getDesktop(), tr("VISU_WARNING"),
+ tr("ERR_CANT_CREATE_ACTOR") + ": " + tr(ex.what()),
+ tr("VISU_BUT_OK"));
+ }
} else if (theDispOnly) {
anVISUActor->GetParent()->VisibilityOff();
} else {