From: apo Date: Wed, 18 Jul 2007 06:48:21 +0000 (+0000) Subject: To check on resolution change action whether this partition supports the given resolu... X-Git-Tag: T_MULTIPR_INDUS_GP_scalar_range~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=08fa4b929dcab3508e3a02dd7cadfb4acde28700;p=modules%2Fvisu.git To check on resolution change action whether this partition supports the given resolution or not --- diff --git a/src/VISU_I/VISU_MultiResult_i.cc b/src/VISU_I/VISU_MultiResult_i.cc index 538cb33f..3aed7f85 100644 --- a/src/VISU_I/VISU_MultiResult_i.cc +++ b/src/VISU_I/VISU_MultiResult_i.cc @@ -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; }