Eidolon
Classes | Functions | Variables
eidolon.SceneManager Namespace Reference

Classes

class  Project
 
class  SceneManager
 

Functions

def createSceneMgr (win, conf=None)
 
def getSceneMgr ()
 
def addPlugin (plug)
 
def loadUserPlugins (conf)
 
def initializePlugins ()
 
def cleanupPlugins ()
 
def _saveLogFileAction (self)
 def func(w): if isinstance(w,self.getPlugin('Plot').BasePlotWidget): sources.append((' +–> '+str(w.objectName()),w,w.width(),w.height())) return False return True More...
 

Variables

 globalMgr
 
 globalPlugins
 

Function Documentation

◆ _saveLogFileAction()

def eidolon.SceneManager._saveLogFileAction (   self)
private

def func(w): if isinstance(w,self.getPlugin('Plot').BasePlotWidget): sources.append((' +–> '+str(w.objectName()),w,w.width(),w.height())) return False return True

traverseWidget(d,func) # add any pyqtgraph types to list

Called when the user chooses a filename for a log file.

◆ addPlugin()

def eidolon.SceneManager.addPlugin (   plug)
Add a plugin to the plugins list, which will be loaded (by calling its init()) method when the global scene
manager is creates. If a plugin of the same type as `plug' is already added, `plug' will not be added. Returns
`plug' if added, or the plugin with the same type as `plug' if not.
Here is the caller graph for this function:

◆ cleanupPlugins()

def eidolon.SceneManager.cleanupPlugins ( )
Call cleanup() on all listed plugins.

◆ createSceneMgr()

def eidolon.SceneManager.createSceneMgr (   win,
  conf = None 
)
Create the global scene manager (if not already created) and initialize plugins. Returns the scene manager.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSceneMgr()

def eidolon.SceneManager.getSceneMgr ( )
Returns the global scene manager.

◆ initializePlugins()

def eidolon.SceneManager.initializePlugins ( )
Initializes all plugins by calling the init() method on each in `globalPlugins'.
Here is the caller graph for this function:

◆ loadUserPlugins()

def eidolon.SceneManager.loadUserPlugins (   conf)
Imports plugins from the user-provided plugin directory (by default ~/.eidolon/plugins). This is done by attempting
to import every directory or file ending in .py found the conf.get(platformID,ConfVars.userplugindir) directory.
Here is the caller graph for this function:

Variable Documentation

◆ globalMgr

globalMgr

◆ globalPlugins

globalPlugins