openalea.oalab.plugins package

Submodules

openalea.oalab.plugins.lpy module

class openalea.oalab.plugins.lpy.LPyApplet(session, controller, parent=None, name='script.lpy', script='')[source]

Bases: object

animate()[source]
default_file_name = 'script.lpy'
default_name = 'LSystem'
extension = 'lpy'
focus_change()[source]

Set doc string in Help widget when focus changed

icon = ':/images/resources/logo.png'
pattern = '*.lpy'
reinit()[source]
run()[source]

Run/iterate all the code (LPy and not PYTHON).

run_selected_part()[source]

Run selected code like a PYTHON code (not LPy code). If nothing selected, run like LPy (not Python).

step(i=None)[source]

Increase current lsystem from one step If you set i, lsystem will go to step number i.

stop()[source]
widget()[source]
Returns:the edition widget
class openalea.oalab.plugins.lpy.LPyApplet2(session, controller, parent=None, name='script.lpy', script='')[source]

Bases: object

animate()[source]
default_file_name = 'script.lpy'
default_name = 'LSystem'
extension = 'lpy'
focus_change()[source]

Set doc string in Help widget when focus changed

icon = ':/images/resources/logo.png'
pattern = '*.lpy'
reinit()[source]
run()[source]

Run/iterate all the code (LPy and not PYTHON).

run_selected_part(txt)[source]

Run selected code like a PYTHON code (not LPy code). If nothing selected, run like LPy (not Python).

step(i=None)[source]

Increase current lsystem from one step If you set i, lsystem will go to step number i.

stop()[source]
openalea.oalab.plugins.lpy.get_default_text()[source]
openalea.oalab.plugins.lpy.import_lpy_file(script)[source]

Extract from an “old style” LPy file script part (str) and associated control (dict). Permit compatibility between LPy and OALab.

Param:script to filter (str)
Returns:lpy script (str) without end begining with “###### INITIALISATION ######”

and a dict which contain the control (dict)

openalea.oalab.plugins.python module

class openalea.oalab.plugins.python.PythonApplet(session, controller, parent=None, name='script.py', script='')[source]

Bases: object

animate()[source]
default_file_name = 'script.py'
default_name = 'Python'
extension = 'py'
focus_change()[source]

Set doc string in Help widget when focus changed

icon = ':/images/resources/Python-logo.png'
pattern = '*.py'
reinit()[source]
run()[source]
run_selected_part()[source]
step()[source]
stop()[source]
widget()[source]
Returns:the edition widget

openalea.oalab.plugins.r module

class openalea.oalab.plugins.r.RApplet(session, controller, parent=None, name='script.R', script='')[source]

Bases: object

animate()[source]
default_file_name = 'script.r'
default_name = 'R'
extension = 'r'
focus_change()[source]

Set doc string in Help widget when focus changed

icon = ':/images/resources/RLogo.png'
pattern = '*.r'
reinit()[source]
run()[source]
run_selected_part()[source]
step()[source]
stop()[source]
widget()[source]
Returns:the edition widget

openalea.oalab.plugins.visualea module

class openalea.oalab.plugins.visualea.VisualeaApplet(session, controller, parent=None, name='workflow.wpy', script=None)[source]

Bases: object

animate()[source]
default_file_name = 'workflow.wpy'
default_name = 'Workflow'
extension = 'wpy'
focus_change()[source]

Set doc string in Help widget when focus changed

icon = ':/images/resources/openalealogo.png'
item_focus_change(scene, item)[source]

Set doc string in Help widget when focus on node changed

pattern = '*.wpy'
reinit()[source]
run()[source]
step()[source]
stop()[source]
widget()[source]
Returns:the edition widget
openalea.oalab.plugins.visualea.actions(self)[source]
Returns:list of actions to set in the menu.
openalea.oalab.plugins.visualea.adapt_widget(widget, methods)[source]
openalea.oalab.plugins.visualea.mainMenu(self)[source]
Returns:Name of menu tab to automatically set current when current widget

begin current.

openalea.oalab.plugins.visualea.repr_workflow(self, name=None)[source]
Returns:workflow repr to save
openalea.oalab.plugins.visualea.save(self, name=None)[source]

Save Current workflow

Module contents