Delete boolean parameter of UpdateObjBrowser method

This commit is contained in:
mpa 2016-11-03 15:37:32 +03:00
parent bac1427e5d
commit 4342afbfe2
33 changed files with 48 additions and 34 deletions

View File

@ -13,4 +13,4 @@ geompy.addToStudy( Box_1, 'Box_1' )
# --- update the study object browser # --- update the study object browser
if salome.sg.hasDesktop(): if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -22,4 +22,4 @@ geompy.PutListToFolder([Box_1, Cylinder_1], Primitives)
if salome.sg.hasDesktop(): if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -20,4 +20,4 @@ for chain in listChains:
ii = ii + 1 ii = ii + 1
pass pass
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -30,4 +30,4 @@ geompy.addToStudy(glue1, "Glue all edges")
geompy.addToStudy(glue2, "Glue two edges") geompy.addToStudy(glue2, "Glue two edges")
if salome.sg.hasDesktop(): if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -40,4 +40,4 @@ edge = geompy.GetEdgeNearPoint( box, p1, theName="edge to split")
div = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)") div = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -49,4 +49,4 @@ for wire in wires:
ii = ii + 1 ii = ii + 1
pass pass
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -23,4 +23,4 @@ geompy.addToStudy(Partition_1, 'Partition_1')
Joined_1 = geompy.RemoveInternalFaces(Partition_1) Joined_1 = geompy.RemoveInternalFaces(Partition_1)
geompy.addToStudy(Joined_1, 'Joined_1') geompy.addToStudy(Joined_1, 'Joined_1')
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -37,4 +37,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
# display the contents of the group # display the contents of the group
gg.createAndDisplayGO(id_group1) gg.createAndDisplayGO(id_group1)
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -26,4 +26,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
# display the contents of the group # display the contents of the group
gg.createAndDisplayGO(id_group1) gg.createAndDisplayGO(id_group1)
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -33,4 +33,4 @@ id_group1 = geompy.addToStudy(group, "Group1")
# display the contents of the group # display the contents of the group
gg.createAndDisplayGO(id_group1) gg.createAndDisplayGO(id_group1)
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4') geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_U_1_2, 'Group_U_1_2') geompy.addToStudyInFather(Box_1, Group_U_1_2, 'Group_U_1_2')
geompy.addToStudyInFather(Box_1, Group_UL_3_4, 'Group_UL_3_4') geompy.addToStudyInFather(Box_1, Group_UL_3_4, 'Group_UL_3_4')
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4') geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_I_1_3, 'Group_I_1_3') geompy.addToStudyInFather(Box_1, Group_I_1_3, 'Group_I_1_3')
geompy.addToStudyInFather(Box_1, Group_IL_1_3, 'Group_IL_1_3') geompy.addToStudyInFather(Box_1, Group_IL_1_3, 'Group_IL_1_3')
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -29,4 +29,4 @@ geompy.addToStudyInFather(Box_1, Group_3, 'Group_3')
geompy.addToStudyInFather(Box_1, Group_4, 'Group_4') geompy.addToStudyInFather(Box_1, Group_4, 'Group_4')
geompy.addToStudyInFather(Box_1, Group_C_2_4, 'Group_C_2_4') geompy.addToStudyInFather(Box_1, Group_C_2_4, 'Group_C_2_4')
geompy.addToStudyInFather(Box_1, Group_CL_2_4, 'Group_CL_2_4') geompy.addToStudyInFather(Box_1, Group_CL_2_4, 'Group_CL_2_4')
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -157,7 +157,7 @@ bool BREPPlugin_GUI::importBREP( SUIT_Desktop* parent )
transaction.abort(); transaction.abort();
} }
} }
getGeometryGUI()->updateObjBrowser( true ); getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList ); app->browseObjects( entryList );
if ( errors.count() > 0 ) if ( errors.count() > 0 )

View File

@ -640,7 +640,7 @@ void GEOMBase_Helper::updateObjBrowser() const
CAM_Module* module = app->module( "Geometry" ); CAM_Module* module = app->module( "Geometry" );
SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module ); SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module );
if ( appMod ) { if ( appMod ) {
appMod->updateObjBrowser( true ); appMod->updateObjBrowser();
} }
} }
} }

View File

@ -169,6 +169,20 @@ GEOMImpl_Gen::GEOMImpl_Gen()
/*@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@*/ /*@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@*/
SetEngine(this); SetEngine(this);
_BasicOperations = new GEOMImpl_IBasicOperations( this );
_TransformOperations = new GEOMImpl_ITransformOperations( this );
_3DPrimOperations = new GEOMImpl_I3DPrimOperations( this );
_ShapesOperations = new GEOMImpl_IShapesOperations( this );
_BlocksOperations = new GEOMImpl_IBlocksOperations( this );
_BooleanOperations = new GEOMImpl_IBooleanOperations( this );
_HealingOperations = new GEOMImpl_IHealingOperations( this );
_CurvesOperations = new GEOMImpl_ICurvesOperations( this );
_LocalOperations = new GEOMImpl_ILocalOperations( this );
_InsertOperations = new GEOMImpl_IInsertOperations( this );
_MeasureOperations = new GEOMImpl_IMeasureOperations( this );
_GroupOperations = new GEOMImpl_IGroupOperations( this );
_FieldOperations = new GEOMImpl_IFieldOperations( this );
} }
//============================================================================= //=============================================================================

View File

@ -323,7 +323,7 @@ def TEST_createBox():
box = geompy.MakeBoxDXDYDZ(200, 200, 200) box = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( box, 'box' ) geompy.addToStudy( box, 'box' )
if salome.sg.hasDesktop(): if salome.sg.hasDesktop():
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()
def TEST_getGeomObjectSelected(): def TEST_getGeomObjectSelected():

View File

@ -50,7 +50,7 @@
# structElemManager = StructuralElementManager() # structElemManager = StructuralElementManager()
# elem = structElemManager.createElement(commandList) # elem = structElemManager.createElement(commandList)
# elem.display() # elem.display()
# salome.sg.updateObjBrowser(True) # salome.sg.updateObjBrowser()
# \endcode # \endcode
# #
# \defgroup orientation # \defgroup orientation
@ -90,7 +90,7 @@ Example::
structElemManager = StructuralElementManager() structElemManager = StructuralElementManager()
elem = structElemManager.createElement(commandList) elem = structElemManager.createElement(commandList)
elem.display() elem.display()
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()
""" """
@ -560,7 +560,7 @@ def TEST_StructuralElement():
elem = structElemManager.createElement(liste_commandes) elem = structElemManager.createElement(liste_commandes)
if salome.hasDesktop(): if salome.hasDesktop():
elem.display() elem.display()
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()
# Main function only used to test the module # Main function only used to test the module

View File

@ -91,5 +91,5 @@ geompy.addToStudy(theShapeForCut, "slot.brep_1")
Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2) Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
geompy.addToStudy(Cut_1, "Cut_1") geompy.addToStudy(Cut_1, "Cut_1")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -55,4 +55,4 @@ if hasInfo == True:
print "Information about fourth object: ", geompy.getObjectInfo(obj4_entry) print "Information about fourth object: ", geompy.getObjectInfo(obj4_entry)
print "Information about fifth object: ", geompy.getObjectInfo(obj5_entry) print "Information about fifth object: ", geompy.getObjectInfo(obj5_entry)
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -42,4 +42,4 @@ smesh = None
GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh) GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
salome.sg.updateObjBrowser(True); salome.sg.updateObjBrowser();

View File

@ -41,7 +41,7 @@ geomgui = salome.ImportComponentGUI("GEOM")
import salome_ComponentGUI import salome_ComponentGUI
def addToStudy(shape, name): def addToStudy(shape, name):
i = geompy.addToStudy(shape, name) i = geompy.addToStudy(shape, name)
salome.sg.updateObjBrowser(False) salome.sg.updateObjBrowser()
if not isinstance(geomgui, type(salome_ComponentGUI)): if not isinstance(geomgui, type(salome_ComponentGUI)):
geomgui.createAndDisplayGO(i) geomgui.createAndDisplayGO(i)
return i return i

View File

@ -48,7 +48,7 @@ geomgui = salome.ImportComponentGUI("GEOM")
def addToStudy(shape, name): def addToStudy(shape, name):
i = geompy.addToStudy(shape, name) i = geompy.addToStudy(shape, name)
salome.sg.updateObjBrowser(False) salome.sg.updateObjBrowser()
# geomgui.createAndDisplayGO(i) # geomgui.createAndDisplayGO(i)
return i return i

View File

@ -159,7 +159,7 @@ weldId = geompy.addToStudy(weld,"weld")
# #
assemblage = geompy.Partition([base ,weld ,trav]) assemblage = geompy.Partition([base ,weld ,trav])
assemblageId = geompy.addToStudy(assemblage, "assemblage") assemblageId = geompy.addToStudy(assemblage, "assemblage")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()
# #
# Display # Display
# #

View File

@ -57,4 +57,4 @@ geompy.addToStudy(Curve_1, "Curve_1")
Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5) Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5)
geompy.addToStudy(Line_1, "Line_1") geompy.addToStudy(Line_1, "Line_1")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -87,4 +87,4 @@ else:
salome.myStudy.SaveAs(theFilenameToSave, 0) salome.myStudy.SaveAs(theFilenameToSave, 0)
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -80,4 +80,4 @@ id_Face_4 = geompy.addToStudyInFather(Compound_1,Compound_1_faces[3], "Face_4")
id_Compound_2 = geompy.addToStudy(Compound_2, "Compound_2") id_Compound_2 = geompy.addToStudy(Compound_2, "Compound_2")
id_Solid_2 = geompy.addToStudyInFather(Compound_2,Compound_2_solids[1], "Solid_2") id_Solid_2 = geompy.addToStudyInFather(Compound_2,Compound_2_solids[1], "Solid_2")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -63,4 +63,4 @@ geompy.addToStudy(Edge_4, "Edge_4")
Wire_1 = geompy.MakeWire([Edge_1, Edge_2, Edge_3, Edge_4]) Wire_1 = geompy.MakeWire([Edge_1, Edge_2, Edge_3, Edge_4])
geompy.addToStudy(Wire_1, "Wire_1") geompy.addToStudy(Wire_1, "Wire_1")
salome.sg.updateObjBrowser(True) salome.sg.updateObjBrowser()

View File

@ -13406,7 +13406,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
self.addToStudyInFather(shape, group_edges, "Group of edges with " + `min_length` self.addToStudyInFather(shape, group_edges, "Group of edges with " + `min_length`
+ left_str + "length" + right_str + `max_length`) + left_str + "length" + right_str + `max_length`)
sg.updateObjBrowser(True) sg.updateObjBrowser()
return group_edges return group_edges

View File

@ -48,7 +48,7 @@
# geompy.addToStudy( Sketch_1, 'Sketch_1' ) # geompy.addToStudy( Sketch_1, 'Sketch_1' )
# #
# # update object browser # # update object browser
# salome.sg.updateObjBrowser(True) # salome.sg.updateObjBrowser()
# @endcode # @endcode
# @n Additionnal examples can be found as unit tests in the source code. # @n Additionnal examples can be found as unit tests in the source code.
# @} # @}

View File

@ -195,7 +195,7 @@ bool IGESPlugin_GUI::importIGES( SUIT_Desktop* parent )
} }
} }
getGeometryGUI()->updateObjBrowser( true ); getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList ); app->browseObjects( entryList );
if ( errors.count() > 0 ) if ( errors.count() > 0 )

View File

@ -206,7 +206,7 @@ bool STEPPlugin_GUI::importSTEP( SUIT_Desktop* parent )
} }
} }
getGeometryGUI()->updateObjBrowser( true ); getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList ); app->browseObjects( entryList );
if ( errors.count() > 0 ) if ( errors.count() > 0 )

View File

@ -155,7 +155,7 @@ bool STLPlugin_GUI::importSTL( SUIT_Desktop* parent )
transaction.abort(); transaction.abort();
} }
} }
getGeometryGUI()->updateObjBrowser( true ); getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList ); app->browseObjects( entryList );
if ( errors.count() > 0 ) if ( errors.count() > 0 )