fipy.viewers.mayaviViewer.mayaviDaemon¶
A simple script that polls a data file for changes and then updates the Mayavi pipeline automatically.
This script is based heavily on the poll_file.py example in the Mayavi distribution.
This script is to be run like so:
$ mayavi2 -x mayaviDaemon.py <options>
Or:
$ python mayaviDaemon.py <options>
Run:
$ python mayaviDaemon.py --help
to see available options.
Functions
  | 
Simple helper to start up the mayavi application.  | 
Classes
  | 
Given a file name and a mayavi2 data reader object, this class polls the file for any changes and automatically updates the mayavi pipeline.  | 
- class fipy.viewers.mayaviViewer.mayaviDaemon.MayaviDaemon(*args: Any, **kwargs: Any)¶
 Bases:
MayaviGiven a file name and a mayavi2 data reader object, this class polls the file for any changes and automatically updates the mayavi pipeline.
- parse_command_line(argv)¶
 Parse command line options.
- setup_source(fname)¶
 Given a VTK file name fname, this creates a mayavi2 reader for it and adds it to the pipeline. It returns the reader created.
- update_pipeline(source)¶
 Override this to do something else if needed.
- view_data()¶
 Sets up the mayavi pipeline for the visualization.
- fipy.viewers.mayaviViewer.mayaviDaemon.main(argv=None)¶
 Simple helper to start up the mayavi application.
This returns the running application.
        FiPy