<?xml version="1.0" ?>
<pqevents>
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menu_View" />
  <pqevent object="pqClientMainWindow/menubar/menu_View" command="activate" arguments="Python Shell" />
  <pqevent object="pqClientMainWindow/pythonShellDock/pythonShell/consoleWidget" command="executeCommand" arguments="userRGBPoints = [0, 0, 0, 0, 1, 1, 1, 1]&#xA;userSettingsString = &quot;&quot;&quot;&#xA;{  &quot;lookup_tables&quot; : {&#xA;    &quot;PVLookupTable&quot; : {&#xA;      &quot;ColorSpace&quot; : 0,&#xA;      &quot;NanColor&quot; : [ 1, 0, 0 ],&#xA;      &quot;RGBPoints&quot; : %s&#xA;    }&#xA;  }&#xA;}&#xA;&quot;&quot;&quot; % userRGBPoints&#xA;&#xA;siteRGBPoints = [0, 1, 1, 1, 1, 0, 0, 0]&#xA;siteSettingsString = &quot;&quot;&quot;&#xA;{&#xA;  &quot;lookup_tables&quot; : {&#xA;    &quot;PVLookupTable&quot; : {&#xA;      &quot;ColorSpace&quot; : 0,&#xA;      &quot;NanColor&quot; : [ 1, 0, 0 ],&#xA;      &quot;RGBPoints&quot; : %s&#xA;    }&#xA;  }&#xA;}&#xA;&quot;&quot;&quot; % siteRGBPoints&#xA;&#xA;session = paraview.servermanager.vtkSMSession()&#xA;pxm = session.GetSessionProxyManager()&#xA;settings = paraview.servermanager.vtkSMSettings.GetInstance()&#xA;settings.ClearAllSettings()&#xA;&#xA;# Add user and site settings in the way that ParaView does when starting up&#xA;settings.AddCollectionFromString(userSettingsString, paraview.vtk.VTK_DOUBLE_MAX)&#xA;settings.AddCollectionFromString(siteSettingsString, 1.0)&#xA;&#xA;tfManager = paraview.servermanager.vtkSMTransferFunctionManager()&#xA;tf = tfManager.GetColorTransferFunction(&quot;blah&quot;, pxm)&#xA;&#xA;rgbPoints = tf.GetProperty(&quot;RGBPoints&quot;)&#xA;&#xA;# The transfer function should have the values from the user settings string&#xA;# at this point.&#xA;try:&#xA;  for i in range(len(userRGBPoints)):&#xA;    assert(userRGBPoints[i] == rgbPoints.GetElement(i))&#xA;except:&#xA;  print(&quot;Err&quot;&quot;or: RGBPoints mismatch in user settings!&quot;)&#xA;" />
  <pqevent object="pqClientMainWindow/pythonShellDock/pythonShell/consoleWidget" command="executeCommand" arguments="" />
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
  <pqevent object="pqClientMainWindow/menubar/menuSources/Alphabetical" command="activate" arguments="SphereSource" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/variableToolbar/displayColor/Variables" command="activated" arguments="Normals" />
  <pqevent object="pqClientMainWindow/variableToolbar/displayColor/Components" command="activated" arguments="X" />
  <pqevent object="pqClientMainWindow/variableToolbar/actionScalarBarVisibility" command="set_boolean" arguments="false" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Container/Frame.0/CentralWidgetFrame/Viewport" baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/RestoreDefaultTransferFunctionA.png" width="300" height="300" />
  <pqevent object="pqClientMainWindow/variableToolbar/actionEditColorMap" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/colorMapEditorDock/colorMapEditorPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/RestoreDefaults" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/variableToolbar/displayColor/Components" command="activated" arguments="X" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Container/Frame.0/CentralWidgetFrame/Viewport" baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/RestoreDefaultTransferFunctionB.png" width="300" height="300" />
  <pqevent object="pqClientMainWindow/pythonShellDock/pythonShell/consoleWidget" command="executeCommand" arguments="settings.ClearAllSettings()&#xA;" />
  <pqevent object="pqClientMainWindow/colorMapEditorDock/colorMapEditorPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/RestoreDefaults" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Container/Frame.0/CentralWidgetFrame/Viewport" baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/RestoreDefaultTransferFunctionC.png" width="300" height="300" />
</pqevents>
