From: sln Date: Wed, 23 Apr 2008 07:38:11 +0000 (+0000) Subject: NPAL19303: EDF 677 VISU : Time Stamps are mixed during ScalaMapOnDeformedShape presen... X-Git-Tag: V4_1_2rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=84bb1e8e64bc46cc00a66464742d7cd35932b9cf;p=modules%2Fvisu.git NPAL19303: EDF 677 VISU : Time Stamps are mixed during ScalaMapOnDeformedShape presentations UpdateLastVisitedPrs() method is updated. SetScalarField() method is called for scalar map on deformed shape in order to provide correct time stamp --- diff --git a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc index 45ace2f3..6b1143a2 100644 --- a/src/VISU_I/VISU_ColoredPrs3dCache_i.cc +++ b/src/VISU_I/VISU_ColoredPrs3dCache_i.cc @@ -651,7 +651,16 @@ VISU::ColoredPrs3dCache_i //if(MYDEBUG) PrintCache(); aPrs3d->SameAs(thePrs); - aPrs3d->UpdateActors(); + + // special case for deformed shape + VISU::ScalarMapOnDeformedShape_i* dShape = + dynamic_cast( aPrs3d.get() ); + if ( dShape && dShape->GetScalarTimeStampNumber() != theInput.myTimeStampNumber ) + { + dShape->SetScalarField( dShape->GetScalarEntity(), + dShape->GetFieldName(), theInput.myTimeStampNumber ); + } + if(CORBA::is_nil(theView3D)) return false; @@ -695,6 +704,8 @@ VISU::ColoredPrs3dCache_i aPrs3d->SetActiveState(true); } + + aPrs3d->UpdateActors(); ProcessVoidEvent(new TRenderEvent(aViewWindow)); //aViewWindow->getRenderWindow()->Render(); return true;