Salome HOME
[MEDCalc] Show object info (ids) in OB
[modules/med.git] / src / MEDCalc / tui / medpresentation.py
index fd1100627f61c7e55ea099ec3023c95110d7480d..eeac1b0636163540bceda1e9670ff1b11a9869b1 100644 (file)
@@ -35,6 +35,7 @@ def MakeScalarMap(proxy,
   params = MEDCALC.ScalarMapParameters(proxy.id, viewMode, displayedInfo, scalarBarRange, colorMap)
   presentation_id = __manager.makeScalarMap(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #
 
 def MakeContour(proxy,
@@ -48,6 +49,7 @@ def MakeContour(proxy,
   params = MEDCALC.ContourParameters(proxy.id, viewMode, displayedInfo, scalarBarRange, colorMap, nbContours)
   presentation_id = __manager.makeContour(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #
 
 def MakeVectorField(proxy,
@@ -56,6 +58,7 @@ def MakeVectorField(proxy,
   params = MEDCALC.VectorFieldParameters(proxy.id, viewMode)
   presentation_id = __manager.makeVectorField(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #
 
 def MakeSlices(proxy,
@@ -66,6 +69,7 @@ def MakeSlices(proxy,
   params = MEDCALC.SlicesParameters(proxy.id, viewMode, orientation, nbSlices)
   presentation_id = __manager.makeSlices(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #
 
 def MakeDeflectionShape(proxy,
@@ -74,6 +78,7 @@ def MakeDeflectionShape(proxy,
   params = MEDCALC.DeflectionShapeParameters(proxy.id, viewMode)
   presentation_id = __manager.makeDeflectionShape(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #
 
 def MakePointSprite(proxy,
@@ -86,4 +91,5 @@ def MakePointSprite(proxy,
   params = MEDCALC.PointSpriteParameters(proxy.id, viewMode, displayedInfo, scalarBarRange, colorMap)
   presentation_id = __manager.makePointSprite(params)
   notifyGui_addPresentation(proxy.id, presentation_id)
+  return presentation_id
 #