From: apo Date: Mon, 29 Aug 2005 08:09:12 +0000 (+0000) Subject: To customize ScalarMap descendants X-Git-Tag: T_3_0_2a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5e2c58718ed3422fa6116ed753e01911f4c3668b;p=modules%2Fvisu.git To customize ScalarMap descendants --- diff --git a/src/VISU_I/VISU_ScalarMap_i.cc b/src/VISU_I/VISU_ScalarMap_i.cc index c78a0830..ebd818ed 100644 --- a/src/VISU_I/VISU_ScalarMap_i.cc +++ b/src/VISU_I/VISU_ScalarMap_i.cc @@ -419,15 +419,7 @@ VISU::Storable* VISU::ScalarMap_i::Build(int theRestoring){ SALOMEDS::StudyBuilder_var aStudyBuilder = myStudy->NewBuilder(); if(myAddToStudy) aStudyBuilder->NewCommand(); // There is a transaction try{ - if(myResult->GetInput() == NULL) - throw std::runtime_error("Mesh_i::Build - myResult->GetInput() == NULL !!!"); - myField = myResult->GetInput()->GetField(myMeshName,myEntity,myFieldName); - if(myField == NULL) throw std::runtime_error("There is no Field with the parameters !!!"); - VISU_Convertor::TOutput *anOutput = - myResult->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(); + DoSetInput(myResult); QString aComment; myName = "NoName"; if(theRestoring <= 0){