From 5e2c58718ed3422fa6116ed753e01911f4c3668b Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 29 Aug 2005 08:09:12 +0000 Subject: [PATCH] To customize ScalarMap descendants --- src/VISU_I/VISU_ScalarMap_i.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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){ -- 2.39.2