parameters: (filename, connection=None)
docstring: Given a state filename and an optional connection, loads the server
      manager state.
docstring_summary: Given a state filename and an optional connection, loads the server
      manager state.
docstring_tokens: Given a state filename and an optional connection loads the server manager state .
function: def LoadState(filename, connection=None):
      """Given a state filename and an optional connection, loads the server
      manager state."""
      if not connection:
          connection = ActiveConnection
      if not connection:
          raise RuntimeError ("Cannot load state without a connection")
      pm = ProxyManager()
      pm.LoadState(filename, None)
      views = GetRenderViews()
      for view in views:
          # Make sure that the client window size matches the
          # ViewSize property. In paraview, the GUI takes care
          # of this.
          if view.GetClassName() == "vtkSMIceTDesktopRenderViewProxy":
              view.GetRenderWindow().SetSize(view.ViewSize[0], \
                                             view.ViewSize[1])
function_tokens: def LoadState ( filename , connection = None ) : if not connection : connection = ActiveConnection if not connection : raise RuntimeError ( "Cannot load state without a connection" ) pm = ProxyManager ( ) pm . LoadState ( filename , None ) views = GetRenderViews ( ) for view in views : # Make sure that the client window size matches the # ViewSize property. In paraview, the GUI takes care # of this. if view . GetClassName ( ) == "vtkSMIceTDesktopRenderViewProxy" : view . GetRenderWindow ( ) . SetSize ( view . ViewSize [ 0 ] , view . ViewSize [ 1 ] )