mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
2nd part of previous commit.
This commit is contained in:
parent
70b0ad241e
commit
8325f0f6ba
@ -396,6 +396,13 @@ void GEOMToolsGUI_ReduceStudyDlg::unpublishObjects( std::set<std::string>& theOb
|
|||||||
_PTR(AttributeDrawable) aDrw = aStudyBuilder->FindOrCreateAttribute( obj, "AttributeDrawable" );
|
_PTR(AttributeDrawable) aDrw = aStudyBuilder->FindOrCreateAttribute( obj, "AttributeDrawable" );
|
||||||
aDrw->SetDrawable( false );
|
aDrw->SetDrawable( false );
|
||||||
myDisplayer.EraseWithChildren( new SALOME_InteractiveObject( studyEntry.c_str(), "GEOM", "TEMP_IO" ) );
|
myDisplayer.EraseWithChildren( new SALOME_InteractiveObject( studyEntry.c_str(), "GEOM", "TEMP_IO" ) );
|
||||||
|
// hide references if any
|
||||||
|
std::vector< _PTR(SObject) > vso = myStudy->FindDependances(obj);
|
||||||
|
for ( int i = 0; i < vso.size(); i++ ) {
|
||||||
|
_PTR(SObject) refObj = vso[i];
|
||||||
|
aDrw = aStudyBuilder->FindOrCreateAttribute( refObj, "AttributeDrawable" );
|
||||||
|
aDrw->SetDrawable( false );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
myApp->updateObjectBrowser( false );
|
myApp->updateObjectBrowser( false );
|
||||||
|
@ -955,6 +955,13 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
|
|||||||
genericAttribute = self.myBuilder.FindOrCreateAttribute(aSObject, "AttributeDrawable")
|
genericAttribute = self.myBuilder.FindOrCreateAttribute(aSObject, "AttributeDrawable")
|
||||||
drwAttribute = genericAttribute._narrow(SALOMEDS.AttributeDrawable)
|
drwAttribute = genericAttribute._narrow(SALOMEDS.AttributeDrawable)
|
||||||
drwAttribute.SetDrawable(False)
|
drwAttribute.SetDrawable(False)
|
||||||
|
# hide references if any
|
||||||
|
vso = self.myStudy.FindDependances(aSObject);
|
||||||
|
for refObj in vso :
|
||||||
|
genericAttribute = self.myBuilder.FindOrCreateAttribute(refObj, "AttributeDrawable")
|
||||||
|
drwAttribute = genericAttribute._narrow(SALOMEDS.AttributeDrawable)
|
||||||
|
drwAttribute.SetDrawable(False)
|
||||||
|
pass
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# end of l1_geomBuilder_auxiliary
|
# end of l1_geomBuilder_auxiliary
|
||||||
|
Loading…
Reference in New Issue
Block a user