]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To use advanced possibilities of Result::GetInput method
authorapo <apo@opencascade.com>
Fri, 13 Jul 2007 09:15:09 +0000 (09:15 +0000)
committerapo <apo@opencascade.com>
Fri, 13 Jul 2007 09:15:09 +0000 (09:15 +0000)
src/VISU_I/VISU_DeformedShape_i.cc
src/VISU_I/VISU_ScalarMapOnDeformedShape_i.cc
src/VISU_I/VISU_ScalarMap_i.cc
src/VISU_I/VISU_StreamLines_i.cc
src/VISU_I/VISU_Vectors_i.cc

index 4fb0f8b33a9ad1a4b369d1c7d703418b16b42e7f..cea988c3a9d5da1cf16d575696c82e235c96b052 100644 (file)
@@ -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);
index a6d4e3403dbbbb027711315c2dd5834a73908fc8..27f611abc89c70598b2beee172b3ab368a928e3a 100644 (file)
@@ -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 = "<<float(aSize)<<"; aResult = "<<aResult);
+      if(MYDEBUG) 
+       MESSAGE("ScalarMapOnDeformedShape_i::IsPossible - CheckAvailableMemory = "<<float(aSize)<<"; aResult = "<<aResult);
     }
   }catch(std::exception& exc){
     INFOS("Follow exception was occured :\n"<<exc.what());
@@ -310,8 +314,8 @@ VISU::ScalarMapOnDeformedShape_i
 void
 VISU::ScalarMapOnDeformedShape_i
 ::SetScalarField(VISU::Entity theEntity,
-                  const char* theFieldName,
-                  CORBA::Long theTimeStampNumber)
+                const char* theFieldName,
+                CORBA::Long theTimeStampNumber)
 {
   bool anIsModified = false;
 
@@ -328,7 +332,10 @@ VISU::ScalarMapOnDeformedShape_i
     return;
 
   VISU::TEntity aEntity = VISU::TEntity(theEntity);
-  VISU::Result_i::PInput anInput = GetCResult()->GetInput();
+  VISU::Result_i::PInput anInput = GetCResult()->GetInput(GetCMeshName(),
+                                                         theEntity,
+                                                         theFieldName,
+                                                         theTimeStampNumber);
   myScalarField = anInput->GetField(GetCMeshName(), aEntity, theFieldName);
 
   VISU::PUnstructuredGridIDMapper anIDMapper = 
index b3f851e371ff10206882626300ff27f4b35d8b8e..b22a9250d822f56b5574af853574373de96592c1 100644 (file)
@@ -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,
index 1a2149b38369e1768b80b19edb034fbfe69764bf..2d0ad30e289b3f982a2783c18b3c2bc9905735a5 100644 (file)
@@ -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),
index 0d9fe4070a5cd4cb284b879d655037f19f8269b3..65a84d24867b54ed302b4afcde9fc81a660a7fd0 100644 (file)
@@ -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,