doc todo

class core.vlab.VlabFile(name)[source]

Bases: object

class core.vlab.VlabObject(directory, pkgmanager)[source]

Bases: object

A vlab object is a directory containing a specification file, and a set of data.

build_graph()[source]

Specify connections between nodes.

build_package()[source]
get_package()[source]
pkgname()[source]
process_command(name, cmd)[source]
process_editor(name, command)[source]

Find the file on which the editor works on.

process_files()[source]
process_program(name, command)[source]

Build a process node from the command.

process_text(name, command)[source]
read_commands(f)[source]
read_files(f)[source]
read_specification()[source]
editors = ['MAP', 'loadmap', 'savemap', 'EDIT', 'SURFACE', 'bezieredit', 'PALETTE', 'palette', 'MEDIT', 'medit', 'GALLERY', 'gallery', 'EDIT', 'funcedit', 'panel', 'CHAR']
ignore = [';', '#']
name2program = {'CHAR': 'edit', 'MAP': 'medit', 'PALETTE': 'palette', 'loadmap': 'palette', 'EDIT': 'edit', 'MEDIT': 'medit', 'GALLERY': 'gallery', 'SURFACE': 'bezieredit'}
programs = ['cpfg', 'lpfg']
text = ['TEXT', 'HINTS']
class core.vlab.VlabObject2(*args, **kwds)[source]

Bases: core.vlab.VlabObject

build_graph()[source]

Specify connections between nodes.

process_editor(name, command)[source]

Find the file on which the editor works on.

process_files()[source]
process_text(name, command)[source]
read_files(f)[source]
core.vlab.compute_layout(sg, vid, x, dx, y, dy)[source]
core.vlab.layout(obj)[source]
core.vlab.random_layout(obj)[source]
core.vlab.search(file, filenames)[source]

Returns the filenames that are referenced in a file.

core.vlab.test1(directory)[source]
core.vlab.vlab_object(directory, pkgmanager)[source]

Create an openalea package from a vlab object. First, read the specification file and parse it. Create the list of data, the list of editors, and the list of programs. Build the graph of dependencies. Compute the layout of the graph. Create a package with data and a composite node.

Previous topic

<no title>

Next topic

Plugins

This Page