]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To check on resolution change action whether this partition supports the given resolu...
authorapo <apo@opencascade.com>
Wed, 18 Jul 2007 06:48:21 +0000 (06:48 +0000)
committerapo <apo@opencascade.com>
Wed, 18 Jul 2007 06:48:21 +0000 (06:48 +0000)
src/VISU_I/VISU_MultiResult_i.cc

index 538cb33fefb9d65d7a4e4f58f983ca76211107c0..3aed7f857119394210e6750a564c6ed7ca8997c3 100644 (file)
@@ -308,7 +308,7 @@ namespace VISU
                         NO_PERFSITENT_REF,
                         aComment.latin1(),
                         false);
-       }
+      }
       
       MultiResult_i::TPartInfos& aPartInfos = *thePartInfos;
       MultiResult_i::TPartName2FileName& aPartName2FileName = *thePartName2FileName;
@@ -911,6 +911,13 @@ VISU::MultiResult_i
   if(aResolution == theResolution)
     return;
 
+  if(theResolution != VISU::Result::HIDDEN){
+    MultiResult_i::TResolutions aResolutions = VISU::GetResolutions(myMainPart2SubPartNames, thePartName);
+    MultiResult_i::TResolutions::iterator anIter = aResolutions.find(theResolution);
+    if(anIter == aResolutions.end())
+      return;
+  }
+
   VISU::Storable::TRestoringMap aRestoringMap;
   aRestoringMap["myComment"] = "PART";
   aRestoringMap["myMeshName"] = theMeshName;
@@ -1121,7 +1128,8 @@ VISU::MultiResult_i
     }
     PInput anInput(CreateConvertor(aFileName));
     anInput->BuildFields();
-    anInput->BuildMinMax();
+    if(myIsBuildMinMax)
+      anInput->BuildMinMax();
     myRepresentation2Input[aRepresentationKey] = anInput;
     return anInput;
   }