# --- update the study object browser
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
ii = ii + 1
pass
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
geompy.addToStudy(glue2, "Glue two edges")
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
div = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
ii = ii + 1
pass
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
Joined_1 = geompy.RemoveInternalFaces(Partition_1)
geompy.addToStudy(Joined_1, 'Joined_1')
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
# display the contents of the group
gg.createAndDisplayGO(id_group1)
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
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_UL_3_4, 'Group_UL_3_4')
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
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_IL_1_3, 'Group_IL_1_3')
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
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_CL_2_4, 'Group_CL_2_4')
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
transaction.abort();
}
}
- getGeometryGUI()->updateObjBrowser( true );
+ getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList );
if ( errors.count() > 0 )
CAM_Module* module = app->module( "Geometry" );
SalomeApp_Module* appMod = dynamic_cast<SalomeApp_Module*>( module );
if ( appMod ) {
- appMod->updateObjBrowser( true );
+ appMod->updateObjBrowser();
}
}
}
/*@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@*/
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 );
}
//=============================================================================
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
geompy.addToStudy( box, 'box' )
if salome.sg.hasDesktop():
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
def TEST_getGeomObjectSelected():
# structElemManager = StructuralElementManager()
# elem = structElemManager.createElement(commandList)
# elem.display()
-# salome.sg.updateObjBrowser(True)
+# salome.sg.updateObjBrowser()
# \endcode
#
# \defgroup orientation
structElemManager = StructuralElementManager()
elem = structElemManager.createElement(commandList)
elem.display()
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
"""
elem = structElemManager.createElement(liste_commandes)
if salome.hasDesktop():
elem.display()
- salome.sg.updateObjBrowser(True)
+ salome.sg.updateObjBrowser()
# Main function only used to test the module
Cut_1 = geompy.MakeBoolean(Chamfer_2, theShapeForCut, 2)
geompy.addToStudy(Cut_1, "Cut_1")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
print "Information about fourth object: ", geompy.getObjectInfo(obj4_entry)
print "Information about fifth object: ", geompy.getObjectInfo(obj5_entry)
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
GEOM_Spanner.MakeSpanner(geompy, math, isBlocksTest, isMeshTest, smesh)
-salome.sg.updateObjBrowser(True);
+salome.sg.updateObjBrowser();
import salome_ComponentGUI
def addToStudy(shape, name):
i = geompy.addToStudy(shape, name)
- salome.sg.updateObjBrowser(False)
+ salome.sg.updateObjBrowser()
if not isinstance(geomgui, type(salome_ComponentGUI)):
geomgui.createAndDisplayGO(i)
return i
def addToStudy(shape, name):
i = geompy.addToStudy(shape, name)
- salome.sg.updateObjBrowser(False)
+ salome.sg.updateObjBrowser()
# geomgui.createAndDisplayGO(i)
return i
#
assemblage = geompy.Partition([base ,weld ,trav])
assemblageId = geompy.addToStudy(assemblage, "assemblage")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
#
# Display
#
Line_1 = geompy.MakeLineTwoPnt(Vertex_4, Vertex_5)
geompy.addToStudy(Line_1, "Line_1")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
salome.myStudy.SaveAs(theFilenameToSave, 0)
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
id_Compound_2 = geompy.addToStudy(Compound_2, "Compound_2")
id_Solid_2 = geompy.addToStudyInFather(Compound_2,Compound_2_solids[1], "Solid_2")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
Wire_1 = geompy.MakeWire([Edge_1, Edge_2, Edge_3, Edge_4])
geompy.addToStudy(Wire_1, "Wire_1")
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()
self.addToStudyInFather(shape, group_edges, "Group of edges with " + `min_length`
+ left_str + "length" + right_str + `max_length`)
- sg.updateObjBrowser(True)
+ sg.updateObjBrowser()
return group_edges
# geompy.addToStudy( Sketch_1, 'Sketch_1' )
#
# # update object browser
-# salome.sg.updateObjBrowser(True)
+# salome.sg.updateObjBrowser()
# @endcode
# @n Additionnal examples can be found as unit tests in the source code.
# @}
}
}
- getGeometryGUI()->updateObjBrowser( true );
+ getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList );
if ( errors.count() > 0 )
}
}
- getGeometryGUI()->updateObjBrowser( true );
+ getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList );
if ( errors.count() > 0 )
transaction.abort();
}
}
- getGeometryGUI()->updateObjBrowser( true );
+ getGeometryGUI()->updateObjBrowser();
app->browseObjects( entryList );
if ( errors.count() > 0 )