openalea.oalab.control package

Submodules

openalea.oalab.control.controlABC module

class openalea.oalab.control.controlABC.ControlABC[source]

Bases: object

default()[source]

Create a default control

edit()[source]
rename(name)[source]
save()[source]
thumbnail()[source]

openalea.oalab.control.controlpanel module

class openalea.oalab.control.controlpanel.ControlPanel(session, controller, parent=None)[source]

Bases: PyQt4.QtGui.QTabWidget

Widget to display control of the current project. Permit to manage control. Double-clic permit to edit control.

clear()[source]
load()[source]

Get control from project and put them into widgets

update()[source]

Get control from widget and put them into project

class openalea.oalab.control.controlpanel.ControlPanelManager(session, controller, parent=None)[source]

Bases: openalea.lpy.gui.objectpanel.ObjectPanelManager

We need it to works with LPyPanelWidget.

completeMenu(menu, panel)[source]
class openalea.oalab.control.controlpanel.LPyPanelWidget(parent, name, panelmanager=None)[source]

Bases: PyQt4.QtGui.QWidget

Geometry editor in control panel.

Permit to manage curves, nurbs and functions

appendObjects(objects)[source]
clear()[source]
displayName(ident)[source]
dragEnterEvent(event)[source]
dropEvent(event)[source]
endNameEditing(ident)[source]
fileDropEvent(fname)[source]
getInfo()[source]
getObjects()[source]
getObjectsCopy()[source]
rename()[source]
setInfo(info)[source]
setName(name)[source]
setObjects(objects)[source]
setStatusBar(st)[source]
showMessage(msg, timeout)[source]
updateName()[source]

openalea.oalab.control.observerpanel module

class openalea.oalab.control.observerpanel.ObserverPanel[source]

Bases: PyQt4.QtGui.QWidget

Widget to display observers

add()[source]
delete()[source]
diplay_thumbnails()[source]

Display thumbnails of all control. - List control - Call control.thumbnail() on each one

rename()[source]

openalea.oalab.control.picklable_curves module

class openalea.oalab.control.picklable_curves.RedBezierNurbs2D(ctrlPoint, typename='')[source]

Bases: openalea.plantgl.scenegraph._pglsg.BezierCurve2D

class openalea.oalab.control.picklable_curves.RedNurbs2D(ctrlPoint, typename='')[source]

Bases: openalea.plantgl.scenegraph._pglsg.NurbsCurve2D

class openalea.oalab.control.picklable_curves.RedNurbsPatch(ctrlPoint, typename='')[source]

Bases: openalea.plantgl.scenegraph._pglsg.NurbsPatch

class openalea.oalab.control.picklable_curves.RedPolyline2D(ctrlPoint, typename='')[source]

Bases: openalea.plantgl.scenegraph._pglsg.Polyline2D

openalea.oalab.control.picklable_curves.geometry_2_piklable_geometry(manager, obj)[source]

Transform a geometry object from PlantGL in picklable object.

Rem: name of object is not changed :param manager: manager of object to transform :param obj: object to transform

Returns:tuple(transformed object, name_of_new_object)

openalea.oalab.control.stdcontrol module

Control classes for standard python types

class openalea.oalab.control.stdcontrol.BoolControl(name=None, value=None)[source]

Bases: openalea.oalab.control.stdcontrol.Control

classmethod default()[source]

Create a default control

edit()[source]

Return a widget to edit object

thumbnail()[source]

Return a widget to visualize object

class openalea.oalab.control.stdcontrol.Control(name=None, value=None)[source]

Bases: object

Base Class for control

default()[source]

Fill fields ‘name’ and ‘’value’ with default values

edit()[source]

Return a widget to edit object

save()[source]
thumbnail()[source]

Return a widget to visualize object

class openalea.oalab.control.stdcontrol.FloatControl(name=None, value=None)[source]

Bases: openalea.oalab.control.stdcontrol.Control

classmethod default()[source]

Create a default control

edit()[source]

Return a widget to edit object

thumbnail()[source]

Return a widget to visualize object

class openalea.oalab.control.stdcontrol.IntControl(name=None, value=None)[source]

Bases: openalea.oalab.control.stdcontrol.Control

classmethod default()[source]

Create a default control

edit()[source]

Return a widget to edit object

thumbnail()[source]

Return a widget to visualize object

Module contents