]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To customize ScalarMap descendants
authorapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:09:12 +0000 (08:09 +0000)
committerapo <apo@opencascade.com>
Mon, 29 Aug 2005 08:09:12 +0000 (08:09 +0000)
src/VISU_I/VISU_ScalarMap_i.cc

index c78a08305cecc0369fad3419c6f9d22fbf82600a..ebd818ed8b8efeacf805ae444a2819dc9259f0f7 100644 (file)
@@ -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){