//aRule = "client='ObjectBrowser' and type='MEDFIELD'";
//mgr->setRule( action( VISU_IMPORT_MED ), aRule, true );
- aRule = "client='ObjectBrowser' and $type in {'VISU::TPART'} and ";
+ aRule = "client='ObjectBrowser' and selcount>=1 and $type in {'VISU::TPART'} and ";
{
- QString aCustomRule = aRule + "fullResolution=1 and (selcount>1 or (selcount=1 and resolutionState!='F'))";
+ QString aCustomRule = aRule + "fullResolution=1 and resolutionState!='F'";
mgr->setRule( action( VISU_MULTIPR_FULL_RES ), aCustomRule, true );
}
{
- QString aCustomRule = aRule + "mediumResolution=1 and (selcount>1 or (selcount=1 and resolutionState!='M'))";
+ QString aCustomRule = aRule + "mediumResolution=1 and resolutionState!='M'";
mgr->setRule( action( VISU_MULTIPR_MED_RES ), aCustomRule, true );
}
{
- QString aCustomRule = aRule + "lowResolution=1 and (selcount>1 or (selcount=1 and resolutionState!='L'))";
+ QString aCustomRule = aRule + "lowResolution=1 and resolutionState!='L'";
mgr->setRule( action( VISU_MULTIPR_LOW_RES ), aCustomRule, true );
}
{
- QString aCustomRule = aRule + "(selcount>1 or (selcount=1 and resolutionState!='H'))";
+ QString aCustomRule = aRule + "resolutionState!='H'";
mgr->setRule( action( VISU_MULTIPR_HIDE), aCustomRule, true );
}
}
aMainPart2SubPartNames[aMainPart].insert(aPartName);
}
- std::string aLastEntry;
for (size_t aPartID = 0 ; aPartID < aPartNames.size() ; aPartID++) {
const MultiResult_i::TPartName& aPartName = aPartNames[aPartID];
MultiResult_i::TPartInfo aPartInfo = GetPartInfo(aMultiprObj, aPartName);
VISU::Result::Resolution aResolution = GetResolution(aMainPart2SubPartNames, aPartInfo.myName);
aComment.sprintf("myComment=PART;myMeshName=%s;myName=%s;myResolutions=%s;myState=%d",
aPartInfo.myMeshName.c_str(), aPartInfo.myName.c_str(), aResoltutionsString.c_str(), aResolution);
- aLastEntry = CreateAttributes(theStudy,
- aMesh->myPartsEntry,
- anIconName,
- NO_IOR,
- aPartInfo.myName,
- NO_PERFSITENT_REF,
- aComment.latin1(),
- true);
- aPartName2Resolution[aPartInfo.myName] = aResolution;
- } else {
- aComment.sprintf("myComment=PART;myMeshName=%s;myName=%s;myResolutions=%s",
- aPartInfo.myMeshName.c_str(), aPartInfo.myName.c_str(), aResoltutionsString.c_str());
CreateAttributes(theStudy,
- aLastEntry,
- NO_ICON,
+ aMesh->myPartsEntry,
+ anIconName,
NO_IOR,
aPartInfo.myName,
NO_PERFSITENT_REF,
aComment.latin1(),
true);
+ aPartName2Resolution[aPartInfo.myName] = aResolution;
}
}