From: apo Date: Fri, 13 Jul 2007 09:15:09 +0000 (+0000) Subject: To use advanced possibilities of Result::GetInput method X-Git-Tag: T_MULTIPR_INDUS_Persistence~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81b65bbc54368418da320a6fe619b917a2addaf8;p=modules%2Fvisu.git To use advanced possibilities of Result::GetInput method --- diff --git a/src/VISU_I/VISU_DeformedShape_i.cc b/src/VISU_I/VISU_DeformedShape_i.cc index 4fb0f8b3..cea988c3 100644 --- a/src/VISU_I/VISU_DeformedShape_i.cc +++ b/src/VISU_I/VISU_DeformedShape_i.cc @@ -63,7 +63,10 @@ VISU::DeformedShape_i theTimeStampNumber, theIsMemoryCheck); if(aResult){ - VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); VISU::PField aField = anInput->GetField(theMeshName, (VISU::TEntity)theEntity, theFieldName); diff --git a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc index a6d4e340..27f611ab 100644 --- a/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc +++ b/src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc @@ -65,7 +65,10 @@ VISU::ScalarMapOnDeformedShape_i theTimeStampNumber, false); if(theIsMemoryCheck && aResult){ - VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); const VISU::PField aField = anInput->GetField(theMeshName, (VISU::TEntity)theEntity, theFieldName); @@ -81,7 +84,8 @@ VISU::ScalarMapOnDeformedShape_i if(anIsEstimated) aSize *= INCMEMORY; aResult = VISU_PipeLine::CheckAvailableMemory(aSize); - MESSAGE("ScalarMapOnDeformedShape_i::IsPossible - CheckAvailableMemory = "<GetInput(); + VISU::Result_i::PInput anInput = GetCResult()->GetInput(GetCMeshName(), + theEntity, + theFieldName, + theTimeStampNumber); myScalarField = anInput->GetField(GetCMeshName(), aEntity, theFieldName); VISU::PUnstructuredGridIDMapper anIDMapper = diff --git a/src/VISU_I/VISU_ScalarMap_i.cc b/src/VISU_I/VISU_ScalarMap_i.cc index b3f851e3..b22a9250 100644 --- a/src/VISU_I/VISU_ScalarMap_i.cc +++ b/src/VISU_I/VISU_ScalarMap_i.cc @@ -67,7 +67,10 @@ VISU::ScalarMap_i try{ if(theResult){ bool anIsEstimated = true; - VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); size_t aSize = anInput->GetTimeStampOnMeshSize(theMeshName, (VISU::TEntity)theEntity, theFieldName, diff --git a/src/VISU_I/VISU_StreamLines_i.cc b/src/VISU_I/VISU_StreamLines_i.cc index 1a2149b3..2d0ad30e 100644 --- a/src/VISU_I/VISU_StreamLines_i.cc +++ b/src/VISU_I/VISU_StreamLines_i.cc @@ -59,7 +59,10 @@ VISU::StreamLines_i if(!TSuperClass::IsPossible(theResult, theMeshName, theEntity, theFieldName, theTimeStampNumber, false)) return 0; - VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); VISU::PUnstructuredGridIDMapper anIDMapper = anInput->GetTimeStampOnMesh(theMeshName, VISU::TEntity(theEntity), diff --git a/src/VISU_I/VISU_Vectors_i.cc b/src/VISU_I/VISU_Vectors_i.cc index 0d9fe407..65a84d24 100644 --- a/src/VISU_I/VISU_Vectors_i.cc +++ b/src/VISU_I/VISU_Vectors_i.cc @@ -65,7 +65,10 @@ VISU::Vectors_i false); if(theIsMemoryCheck && aResult){ bool anIsEstimated = true; - VISU::Result_i::PInput anInput = theResult->GetInput(); + VISU::Result_i::PInput anInput = theResult->GetInput(theMeshName, + theEntity, + theFieldName, + theTimeStampNumber); size_t aSize = anInput->GetTimeStampOnMeshSize(theMeshName, (VISU::TEntity)theEntity, theFieldName,