+# sphinx doc: begin of MakePlot3D
+def MakePlot3D(proxy,
+ viewMode=MEDCALC.VIEW_MODE_DEFAULT,
+ scalarBarRange=MEDCALC.SCALAR_BAR_RANGE_DEFAULT,
+ colorMap=MEDCALC.COLOR_MAP_DEFAULT
+ ):
+ # Create the presentation instance in CORBA engine
+ # The engine in turn creates the ParaView pipeline elements
+ visibility = DEFAULT_VISIBILITY
+ scalarBarVisibility = DEFAULT_SCALAR_BAR_VISIBILITY
+ scalarBarRangeArray = DEFAULT_SCALAR_BAR_RANGE
+ hideDataOutsideCustomRange = DEFAULT_HIDE_DATA_OUTSIDE_CUSTOM_RANGE
+ scalarBarRangeArray = DEFAULT_SCALAR_BAR_RANGE
+ planeNormal = DEFAULT_PLANE_NORMAL
+ planePos = DEFAULT_PLANE_POS
+ params = MEDCALC.Plot3DParameters(proxy.id, scalarBarRange, colorMap, visibility,
+ scalarBarVisibility, scalarBarRangeArray, hideDataOutsideCustomRange, planeNormal, planePos)
+ try:
+ presentation_id = __manager.makePlot3D(params, viewMode)
+ notifyGui_addPresentation(proxy.id, presentation_id)
+ return presentation_id
+ except SALOME.SALOME_Exception as e:
+ notifyGui_error("An error occurred while creating the Plot3D:\n" + e.details.text)
+ raise Exception(e.details.text)
+# sphinx doc: end of MakePlot3D
+
+def MakeStreamLines(proxy,
+ viewMode=MEDCALC.VIEW_MODE_DEFAULT,
+ scalarBarRange=MEDCALC.SCALAR_BAR_RANGE_DEFAULT,
+ colorMap=MEDCALC.COLOR_MAP_DEFAULT
+ ):
+ # Create the presentation instance in CORBA engine
+ # The engine in turn creates the ParaView pipeline elements
+ visibility = DEFAULT_VISIBILITY
+ scalarBarVisibility = DEFAULT_SCALAR_BAR_VISIBILITY
+ scalarBarRangeArray = DEFAULT_SCALAR_BAR_RANGE
+ hideDataOutsideCustomRange = DEFAULT_HIDE_DATA_OUTSIDE_CUSTOM_RANGE
+ integrDir = MEDCALC.INTEGRATION_DIR_DEFAULT
+ params = MEDCALC.StreamLinesParameters(proxy.id, scalarBarRange, colorMap, visibility,
+ scalarBarVisibility, scalarBarRangeArray, hideDataOutsideCustomRange, integrDir)
+ try:
+ presentation_id = __manager.makeStreamLines(params, viewMode)
+ notifyGui_addPresentation(proxy.id, presentation_id)
+ return presentation_id
+ except SALOME.SALOME_Exception as e:
+ notifyGui_error("An error occurred while creating the StreamLines:\n" + e.details.text)
+ raise Exception(e.details.text)
+
+
+def MakeCutSegment(proxy,
+ viewMode=MEDCALC.VIEW_MODE_DEFAULT,
+ scalarBarRange=MEDCALC.SCALAR_BAR_RANGE_DEFAULT,
+ colorMap=MEDCALC.COLOR_MAP_DEFAULT
+ ):
+ # Create the presentation instance in CORBA engine
+ # The engine in turn creates the ParaView pipeline elements
+ visibility = DEFAULT_VISIBILITY
+ scalarBarVisibility = DEFAULT_SCALAR_BAR_VISIBILITY
+ hideDataOutsideCustomRange = DEFAULT_HIDE_DATA_OUTSIDE_CUSTOM_RANGE
+ scalarBarRangeArray = DEFAULT_SCALAR_BAR_RANGE
+ point1 = DEFAULT_CUT_POINT1
+ point2 = DEFAULT_CUT_POINT2
+ params = MEDCALC.CutSegmentParameters(proxy.id, scalarBarRange, colorMap, visibility,
+ scalarBarVisibility, scalarBarRangeArray, hideDataOutsideCustomRange, point1, point2)
+ try:
+ presentation_id = __manager.makeCutSegment(params, viewMode)
+ notifyGui_addPresentation(proxy.id, presentation_id)
+ return presentation_id
+ except SALOME.SALOME_Exception as e:
+ notifyGui_error("An error occurred while creating the CutSegment:\n" + e.details.text)
+ raise Exception(e.details.text)
+
+