From 2c7416b2d3b2f6e92eb568118e505613445dee9f Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 26 Aug 2005 05:57:58 +0000 Subject: [PATCH] To provide a way to customize VISU::ScalarMap_i::Build method --- src/VISU_I/VISU_ScalarMap_i.cc | 15 +++++++++++++++ src/VISU_I/VISU_ScalarMap_i.hh | 1 + 2 files changed, 16 insertions(+) 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() - "<