// Sweep
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);
vw->getRenderWindow()->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());
+ SUIT_MessageBox::warn1(GetDesktop(theModule), QObject::tr("WRN_VISU"),
+ QObject::tr("ERR_CANT_CREATE_ACTOR") + ": " + QObject::tr(ex.what()),
+ QObject::tr("BUT_OK"));
+ }
} else if (theDispOnly) {
anVISUActor->GetParent()->VisibilityOff();
} else {