<?xml version="1.0" ?>
<pqevents>
  <!--
  Load the SLACTools plugin.
  -->
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
  <pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionManage_Plugins" />
  <pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/localPlugins" command="setCurrent" arguments="SLACTools" />
  <pqevent object="pqClientMainWindow/PluginManagerDialog/localGroup/loadSelected_Local" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/PluginManagerDialog/buttonBox/1QPushButton0" command="activate" arguments="" />
  <!--
  Load the pic-example SLAC files.
  -->
  <pqevent object="pqSLACActionHolder/actionDataLoadManager" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/meshFile/FileButton" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/meshFile/pqFileDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/SLAC/pic-example/mesh.ncdf" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/modeFile/FileButton" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/modeFile/pqFileDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/SLAC/pic-example/fields_..mod" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/particlesFile/FileButton" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/particlesFile/pqFileDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Data/SLAC/pic-example/particles_..ncdf" />
  <pqevent object="pqClientMainWindow/pqSLACDataLoadManager/buttonBox/1QPushButton0" command="activate" arguments="" />
  <!--
  For some reason, the snapshot is being grabbed before the image is updated
  when the dialog closes.  To get around this issue, simulate a mouse click
  in the view.  I'm not really happy with this hack because it won't catch if
  accepting the dialog really doesn't render the final view.
  -->
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mousePress" arguments="(0.5,0.5,1,1,0)" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mouseRelease" arguments="(0.5,0.5,1,0,0)" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" baseline="$PARAVIEW_DATA_ROOT/Baseline/SLACToolsInitialLoad.png" width="300" height="300" />
  <!--
  Show the magnetic (b) field and change the representation to solid+wireframe.
  -->
  <pqevent object="pqSLACActionHolder/actionShowBField" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionWireframeSolidMesh" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" baseline="$PARAVIEW_DATA_ROOT/Baseline/SLACToolsBFieldWireSolid.png" width="300" height="300" />
  <!--
  Rotate the camera, show front wireframe + solid back, show electric (e)
  field scaled to all time steps, turn off particles.
  -->
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
  <pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mousePress" arguments="(0.863333,0.543333,1,1,0)" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mouseMove" arguments="(0.743333,0.633333,1,0,0)" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" command="mouseRelease" arguments="(0.743333,0.633333,1,0,0)" />
  <!--
  Restore window
  -->
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuTools" />
  <pqevent object="pqClientMainWindow/menubar/menuTools" command="activate" arguments="actionTesting_Window_Size" />
  <pqevent object="pqSLACActionHolder/actionWireframeAndBackMesh" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionShowEField" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionTemporalResetRange" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionShowParticles" command="set_boolean" arguments="false" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" baseline="$PARAVIEW_DATA_ROOT/Baseline/SLACToolsWireEFieldTempResetHideP.png" width="300" height="300" />
  <!--
  Restore black background, restore solid, restore particles, restore camera
  -->
  <pqevent object="pqSLACActionHolder/actionToggleBackgroundBW" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionSolidMesh" command="activate" arguments="" />
  <pqevent object="pqSLACActionHolder/actionShowParticles" command="set_boolean" arguments="true" />
  <pqevent object="pqSLACActionHolder/actionShowStandardViewpoint" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" baseline="$PARAVIEW_DATA_ROOT/Baseline/SLACToolsBlackBackReset.png" width="300" height="300" />
  <!--
  Plot over Z axis, change time.
  -->
  <pqevent object="pqSLACActionHolder/actionPlotOverZ" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/VCRToolbar/actionVCRNextFrame" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Splitter.0/Frame.1/Close" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Frame.0/Viewport" baseline="$PARAVIEW_DATA_ROOT/Baseline/SLACToolsPlotOverZ.png" width="300" height="300" />
</pqevents>
