VISU::ColoredPrs3d_i
::UpdateFromResult(Result_i* theResult)
{
- try{
- if(theResult == GetCResult()){
- DoSetInput(false, false);
- UpdateActors();
+ struct TEvent: public SALOME_Event
+ {
+ VISU::ColoredPrs3d_i* myColoredPrs3d;
+
+ TEvent(VISU::ColoredPrs3d_i* theColoredPrs3d):
+ myColoredPrs3d(theColoredPrs3d)
+ {}
+
+ virtual
+ void
+ Execute()
+ {
+ try{
+ myColoredPrs3d->DoSetInput(false, false);
+ myColoredPrs3d->UpdateActors();
+ }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!");
- }
+ };
+
+ if ( theResult == GetCResult() )
+ ProcessVoidEvent(new TEvent(this));
}
if(!IsRangeFixed() && theReInit)
SetSourceRange();
- if(GetPublishInStudyMode() != EDoNotPublish)
- GetCResult()->ConnectObserver(this, myResultConnection);
+ GetCResult()->ConnectObserver(this, myResultConnection);
myPreviousEntity = myEntity;
myPreviousFieldName = myFieldName;