From: apo Date: Fri, 26 Aug 2005 05:57:58 +0000 (+0000) Subject: To provide a way to customize VISU::ScalarMap_i::Build method X-Git-Tag: T_3_0_2a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c7416b2d3b2f6e92eb568118e505613445dee9f;p=modules%2Fvisu.git To provide a way to customize VISU::ScalarMap_i::Build method --- diff --git a/src/VISU_I/VISU_ScalarMap_i.cc b/src/VISU_I/VISU_ScalarMap_i.cc index b943952e..c78a0830 100644 --- a/src/VISU_I/VISU_ScalarMap_i.cc +++ b/src/VISU_I/VISU_ScalarMap_i.cc @@ -464,6 +464,21 @@ VISU::Storable* VISU::ScalarMap_i::Build(int theRestoring){ } +void VISU::ScalarMap_i::DoSetInput(Result_i* theResult){ + if(theResult->GetInput() == NULL) + throw std::runtime_error("Mesh_i::Build - theResult->GetInput() == NULL !!!"); + myField = theResult->GetInput()->GetField(myMeshName,myEntity,myFieldName); + if(myField == NULL) + throw std::runtime_error("There is no Field with the parameters !!!"); + VISU_Convertor::TOutput *anOutput = + theResult->GetInput()->GetTimeStampOnMesh(myMeshName,myEntity,myFieldName,myIteration); + if(anOutput == NULL) + throw std::runtime_error("There is no TimeStamp with the parameters !!!"); + myScalarMapPL->SetInput(anOutput); + myScalarMapPL->Build(); +} + + void VISU::ScalarMap_i::DoHook(){ if(MYDEBUG) MESSAGE("ScalarMap_i::DoHook() - "<