parameters: (plugin)
docstring: Lets the user capture input via a glinterface.GLPluginInterface class.
      Set plugin to None to disable plugins and return to the standard visualization
  
      Args:
          plugin (GLPluginInterface): a plugin that will hereafter capture input
              from the visualization and can override any of the default behavior of the
              visualizer. Can be set to None if you want to return to the default visualization.
docstring_summary: Lets the user capture input via a glinterface.GLPluginInterface class.
      Set plugin to None to disable plugins and return to the standard visualization
docstring_tokens: Lets the user capture input via a glinterface . GLPluginInterface class . Set plugin to None to disable plugins and return to the standard visualization
function: def setPlugin(plugin):
      """Lets the user capture input via a glinterface.GLPluginInterface class.
      Set plugin to None to disable plugins and return to the standard visualization
  
      Args:
          plugin (GLPluginInterface): a plugin that will hereafter capture input
              from the visualization and can override any of the default behavior of the
              visualizer. Can be set to None if you want to return to the default visualization.
      """
      global _globalLock,_frontend,_windows,_current_window
      _globalLock.acquire()
      if not isinstance(_frontend,GLPluginProgram):
          _frontend = GLPluginProgram()
          if _current_window is not None:
              if _windows[_current_window].glwindow is not None:
                  _frontend.window = _windows[_current_window].glwindow
      if plugin is None:
          global _vis
          if _vis is None:
              raise RuntimeError("Visualization disabled")
          _frontend.setPlugin(_vis)
      else:
          _frontend.setPlugin(plugin)
      if hasattr(plugin,'world'):
          _checkWindowCurrent(plugin.world)
      _onFrontendChange()
      _globalLock.release()
function_tokens: def setPlugin ( plugin ) : global _globalLock , _frontend , _windows , _current_window _globalLock . acquire ( ) if not isinstance ( _frontend , GLPluginProgram ) : _frontend = GLPluginProgram ( ) if _current_window is not None : if _windows [ _current_window ] . glwindow is not None : _frontend . window = _windows [ _current_window ] . glwindow if plugin is None : global _vis if _vis is None : raise RuntimeError ( "Visualization disabled" ) _frontend . setPlugin ( _vis ) else : _frontend . setPlugin ( plugin ) if hasattr ( plugin , 'world' ) : _checkWindowCurrent ( plugin . world ) _onFrontendChange ( ) _globalLock . release ( )