Reference guide#

openalea.rose module#

openalea.rose.data.data()[source]#
openalea.rose.data.environments()[source]#
openalea.rose.data.expe2_dir()[source]#
openalea.rose.data.experiments(manip)[source]#
openalea.rose.data.geom_dir()[source]#
openalea.rose.data.manip_dir()[source]#
openalea.rose.data.manips()[source]#
openalea.rose.data.mtg_dir()[source]#
openalea.rose.data.phytotron()[source]#

Return the geometry of the phytotron

openalea.rose.data.sensors()[source]#
openalea.rose.data.sensors_dir()[source]#

openalea.rose.mockup module#

openalea.rose.mockup.rose module#

class openalea.rose.mockup.rose.CropGeneration_2011[source]#

Bases: Node

Yields the cropGeneration_2011(…) function

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.Files2MTGs[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.Files2MTGs4CAN2[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.GetGrid[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.GetMTG[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.GetOrigin[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.HttpDir2DictOfFiles[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.LocalDir2DictOfFiles[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose.MTG_union[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose.cropGeneration_2011(plantlist=None, existingmtglist=None, excludelist=None, gridDef=None, origin=(0, 0, 800), DoFill=True, DoRotate=True)[source]#
Brief:

Generates a dictionary of filenames associated with one or more position and orientation.

Parameters:
  • plantlist – ‘the dispatching grid of the plant numbers on the table’

  • existingmtglist – ‘the dictionary of the existing pairs <plant_number:filename>’

  • excludelist – ‘a list of plants not to use for filling (if any)’

  • gridDef – ‘the dimensions of the grid used for this experiment : nX, nY, sizeX, sizeY’

  • origin – ‘the 3D global coordinates of the local 0,0,0 position within the grid’

  • DoFill – ‘Should we fill empty places with existing data ?’

  • DoRotate – ‘Should or should we not rotate the plants used for filling’

openalea.rose.mockup.rose.files2MTGs(cropdict)[source]#
Brief:

Creates a list of MTG object from a dict of {MTG files:list of coordinates} pairs.

The procedure reads the MTG files, then places them both onto their coordinates, Then it uses the files again to fill up empty spaces, with a random rotation angle. :param cropdict : a dictionary built with - MTG files names as keys, - shift of the real plant as 1st value for each key - shift and rotation as further values, if any :return: a list of MTG objects that were build from the dict

openalea.rose.mockup.rose.files2MTGs4CAN2(cropdict)[source]#
Brief:

Creates a list of MTG object from a dict of {MTG files:list of coordinates} pairs.

The procedure reads the MTG files, then places them both onto their coordinates, Then it uses the files again to fill up empty spaces, with a random rotation angle. :param cropdict : a dictionary built with - MTG files names as keys, - shift of the real plant as 1st value for each key - shift and rotation as further values, if any :return: a list of MTG objects that were build from the dict

openalea.rose.mockup.rose.getGrid(gridfilename)[source]#

Makes a dictionary from file that contains plants indexes inside a 2D grid.

openalea.rose.mockup.rose.getMTG(dirname, IDplant)[source]#

generates a complete path to a file. the argument is in the form of “NUM[-N]”, which means that we want to create an MTG object fom the NUM.mtg file. To achieve that, the filename is split against the”-” (dash) separator and the string “.mtg” is concatenated to it.

openalea.rose.mockup.rose.getOrigin(originFilename)[source]#

reads the 3D coordinates of the 1st plant (i.e. the one in the [0,0] position) from a file

openalea.rose.mockup.rose.httpDir2DictOfFiles(url, filtre='.mtg')[source]#
openalea.rose.mockup.rose.localDir2DictOfFiles(listoffiles)[source]#

makes a dict of names: complete_path from a dirname and a name filter

openalea.rose.mockup.rose.mTG_union(mtgsin)[source]#

make the union of MTGs

openalea.rose.mockup.rose_colors module#

openalea.rose.mockup.rose_colors.Anthocyan()[source]#
openalea.rose.mockup.rose_colors.Blue()[source]#
openalea.rose.mockup.rose_colors.BrokenWhite()[source]#
openalea.rose.mockup.rose_colors.Brown()[source]#
openalea.rose.mockup.rose_colors.Button()[source]#
class openalea.rose.mockup.rose_colors.ColorFuncs[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_colors.Fruit()[source]#
openalea.rose.mockup.rose_colors.Green()[source]#
openalea.rose.mockup.rose_colors.Leaf()[source]#
openalea.rose.mockup.rose_colors.LightBlue()[source]#
openalea.rose.mockup.rose_colors.LightBrown()[source]#
openalea.rose.mockup.rose_colors.LightGreen()[source]#
openalea.rose.mockup.rose_colors.LightGrey()[source]#
openalea.rose.mockup.rose_colors.LightOrange()[source]#
openalea.rose.mockup.rose_colors.LightPurple()[source]#
openalea.rose.mockup.rose_colors.LightYellow()[source]#
openalea.rose.mockup.rose_colors.Ped()[source]#
openalea.rose.mockup.rose_colors.PerlGrey()[source]#
openalea.rose.mockup.rose_colors.Petal()[source]#
openalea.rose.mockup.rose_colors.Pink()[source]#
openalea.rose.mockup.rose_colors.Purple()[source]#
openalea.rose.mockup.rose_colors.Receptacle()[source]#
openalea.rose.mockup.rose_colors.Red()[source]#
openalea.rose.mockup.rose_colors.Sepal()[source]#
openalea.rose.mockup.rose_colors.Strand()[source]#
openalea.rose.mockup.rose_colors.White()[source]#
openalea.rose.mockup.rose_colors.Yellow()[source]#
openalea.rose.mockup.rose_colors.setTurtleAnthocyan(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleBlue(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleBrokenWhite(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleBrown(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleButton(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleFruit(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleGreen(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleKoPink(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleLeaf(t)[source]#
openalea.rose.mockup.rose_colors.setTurtlePed(t)[source]#
openalea.rose.mockup.rose_colors.setTurtlePerlGrey(t)[source]#
openalea.rose.mockup.rose_colors.setTurtlePetal(t)[source]#
openalea.rose.mockup.rose_colors.setTurtlePink(t)[source]#
openalea.rose.mockup.rose_colors.setTurtlePurple(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleReceptacle(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleRed(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleSepal(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleStrand(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleWhite(t)[source]#
openalea.rose.mockup.rose_colors.setTurtleYellow(t)[source]#

openalea.rose.mockup.rose_file module#

class openalea.rose.mockup.rose_file.GetHomeDir[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_file.IntSort[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_file.ReadCsv[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_file.ReadXls[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_file.RootName[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_file.Scene2Can01[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_file.canline(ind, couleur, p)[source]#
openalea.rose.mockup.rose_file.getHomeDir()[source]#

On 2020/02/24, the packagedir and expand_user_dir stopped to run.

openalea.rose.mockup.rose_file.intSort(listeOfStrings)[source]#

returns a numerically sorted list of string’d numbers

openalea.rose.mockup.rose_file.jsonDump(data, file_path)[source]#
openalea.rose.mockup.rose_file.jsonLoad(file_path)[source]#
openalea.rose.mockup.rose_file.mesh(geometry)[source]#
openalea.rose.mockup.rose_file.readCsv(fileName, delimiter=',', ligne_debut=0)[source]#

we read the csv file, then we return a list of split lines

openalea.rose.mockup.rose_file.readXls(fileName, numero_feuille=0, ligne_debut=0)[source]#

we used to read the “fileName” xls file, then we could return a list of split lines There is no more a xlrd module within openalea

openalea.rose.mockup.rose_file.rootName(nom)[source]#

returns the numeric sequence at the beginning of the file name

openalea.rose.mockup.rose_file.scene2Can01(maScene, fileName, makeDir=False)[source]#
openalea.rose.mockup.rose_file.tempPickleFile(filename)[source]#

returns a temp file name in a temp dir according to the os

openalea.rose.mockup.rose_geometry module#

class openalea.rose.mockup.rose_geometry.BezierPatchFlower[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.BudArray[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.BuiltBud[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.ComputeLeafletFrom4pts[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.ControlPointsMatrix[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.FineBudArray[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.FloralOrgan[source]#

Bases: Node

FIXME : inside implementation not to be shown

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.Flower[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.NoOrgan[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.PetalMatrix[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.PointArray[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.PolygonLeaflet[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.RawBud[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.RawFlower[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.RawFruit[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.ReconstructWithTurtle[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.ReconstructionsWithTurtle[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.RevolutionBud[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.RevolutionFig[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.Scene_union[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_geometry.TurtleFrame(g, visitor)[source]#

The function that sets the turtle up and calls the function traverse_with_turtle that walks through the MTG tree, with “visitor” as a parameter.

Parameters:
  • g – an MTG object to explore.

  • visitor – the function to be called at every node of the “g” MTG.

Calls:

pgl.PglTurtle that makes a brand-new turtle.

Calls:

the traverse_with_turtle function, with the turtle as an argument

Returns:

the scene collected by the turtle during the walkthrough.

openalea.rose.mockup.rose_geometry.TurtleFrame4CAN02(g, visitor, plantFacts)[source]#

The function that sets the turtle up and calls the function traverse_with_turtle that walks through the MTG tree, with “visitor” as a parameter.

Parameters:
  • g – an MTG object to explore.

  • visitor – the function to be called at every node of the “g” MTG.

Calls:

pgl.PglTurtle that makes a brand-new turtle.

Calls:

the traverse_with_turtle function, with the turtle as an argument

Returns:

the scene collected by the turtle during the walkthrough.

class openalea.rose.mockup.rose_geometry.VertexVisitor[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.VertexVisitor4CAN02[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_geometry.bezierPatchFlower(controlpointmatrix=None, ustride=5, vstride=5, colorFunc=None)[source]#

This is a function that returns a bpFlower function with in its closure :

  • the control points matrix, as a list of lists, which defines a mesh (it can be seen as a 2D set with an altitude for each point) :

    • every inner list contains a set of control points that defines a bezier curve in a direction of the mesh

    • all the N-th points of the inner lists defines the N-th bezier curve in the other direction of the mesh

  • the u and v strides

  • the coloring function

Parameters:
  • controlpointmatrix – a list of lists of points of type openalea.mtg.plantframe::Vector4

  • ustride – the number of points to us to discretize the surface along the 1st direction

  • vstride – the number of points to us to discretize the surface along the 2nd direction

  • colorFunc – a function that sets the color of the turtle

openalea.rose.mockup.rose_geometry.budArray()[source]#

We define a list of points to feed a revolution object. The values are openalea.mtg.plantframe::Vector2 which contain :

  • ray

  • axial coordinate

Returns:

the list of points

openalea.rose.mockup.rose_geometry.buildCanPath(path)[source]#

we comute the path to write CAN files in

openalea.rose.mockup.rose_geometry.builtBud(stride=10)[source]#

we define here a nested function (computeBuiltBud) to draw buds with a sphere and a Paraboloid. The paraboloid is imported from openalea.mtg.plantframe

Parameters:

stride – the stride of the paraboloid

Returns:

the computeBuiltBud function

openalea.rose.mockup.rose_geometry.can02line(dateDigit, typeOrg, numPlante, numOrg)[source]#
Parameters:
  • dateDigit – the day number

  • typeOrg – the type of organ

  • numPlante – the plant number

  • numOrg – the Id of the organ

Returns:

a can02 line heading fields

Note:

all these fields will be read as integers by Sec2

openalea.rose.mockup.rose_geometry.canline(ind, label, p)[source]#

Write a triangle in the can formalism (version 01) :param ind: geometry.indexList, i.e la liste des index adressant les points 3D :param label: the label of the triangle :param p: geometry.pointList, i.e la liste des points 3D constituant le polygone :return: a can 02 line

openalea.rose.mockup.rose_geometry.clearCanPath(path)[source]#

we clear all the *.can file within the directory “path”

openalea.rose.mockup.rose_geometry.computeFacingFromUp(Up)[source]#
Computes and returns a Facing normalized vector (say the local i) that is:
  • normal to Up

  • such as Up ^ Facing is horizontal and is the local y

To do so, it does compute a horizontal direction Yo such as : Yo . Up = 0. Because Yo is horizontal and exists by construction, so Facing = Yo cross Up

Parameters:

up – local up vector (the local z)

Returns:

a vector pointing in the front direction (the local x)

Note:

The parameter and the return value are supposed to be openalea.mtg.plantframe::Vector3

openalea.rose.mockup.rose_geometry.computeHeading(points)[source]#

computes the unity vector Hf that points from the 1st to the last point of the list, and computes their distance lf. returns a pair (Hf, lf)

Parameters:

points – a list of points

Returns:

a pair (Hf, lf)

openalea.rose.mockup.rose_geometry.computeKnop4pts()[source]#

We build a knop as a tetrahedron where the outermost edge is joining the rachis and the internode ; The 1st triangle is facing the right and the second one is facing the left, The 3rd one lies against the stem and the last one goes against the rachis. The mtg file builder says :

# face droite (vu depuis la tige) : (1, 0, 2) # face gauche (vu depuis la tige) : (0, 1, 3)

openalea.rose.mockup.rose_geometry.computeLateralAxis(front, up)[source]#
Computes and returns a Lateral normalized vector that is:
  • normal to the <front,up> plane

  • such as (front, Lateral, up) is a direct mark

Parameters:
  • front – front vector (say x)

  • up – up vector (say z)

Returns:

a vector pointing on the left side direction (say y)

Note:

The parameters and the return value are supposed to be openalea.mtg.plantframe::Vector3

openalea.rose.mockup.rose_geometry.computeLeafletFrom4pts(xMesh=None, yMesh=None)[source]#

We define here a nested function (meshedLeaflet) that computes a meshed leaflet geometry from 4 points. :param xMesh: the mesh coordinates along the axis of the leaf, as percent of the leaflet length. :param yMesh: the width of the leaf at the corresponding point, in percent of the leaf width. :return: the meshedLeaflet function :note: default values are to be set in __wralea__.py, not here !

openalea.rose.mockup.rose_geometry.computeUpAxis(front, side)[source]#

Computes and returns a vector that is normal to front and supposed to point upside the half leaflet.

Parameters:
  • front – a vector pointing in the front direction (say x)

  • side – a vector pointing on the left side direction (say y)

Returns:

the heading (up) direction (say z)

Note:

The parameters and the return value are supposed to be openalea.mtg.plantframe::Vector3

openalea.rose.mockup.rose_geometry.coneFlower(colorFunc=None)[source]#

We define here a function (rawFlower) that draws up a raw flower.

Returns:

the function rawFlower

openalea.rose.mockup.rose_geometry.ctrlpointMatrix()[source]#

We define here a control point matrix for a bezier patch with 2 columns and 7 rows that draws a raw petal.

Returns:

the control point matrix

openalea.rose.mockup.rose_geometry.dateDigit(dirName, plantnum)[source]#

we return the date when this computation was made :TODO: we want to compute the number of the day when the digitization was made,

this data could become deductible from the dirname if the associated knowledge

By importing json & loadin the dict everytime, this code should be quite inefficient in C Getting the dict (at least it’s name) as an input of the node could be an option

openalea.rose.mockup.rose_geometry.displayNormalVector(turtle, points, color)[source]#

displays a nail (or something sharp) to show up the normal direction of a surface

Parameters:
  • turtle – the openalea.plantgl.all::PglTurtle object to draw onto

  • points – set of points

  • color – the index of the color to use for the nail

class openalea.rose.mockup.rose_geometry.drawBuds[source]#

Bases: Node

Returns:

a list of drawing bud functions

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_geometry.drawFloralOrgan(colorFunc=None)[source]#

A function to return the function that draws floral organs

Parameters:

colorFunc – the index of the color to use for the flower

class openalea.rose.mockup.rose_geometry.drawKnops[source]#

Bases: Node

Returns:

a list of drawing bud functions

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.drawLeaves[source]#

Bases: Node

Returns:

a list of the leaves drawing functions

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_geometry.drawStipule[source]#

Bases: Node

Returns:

a list of drawing stipule functions

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_geometry.drawStipule3pts()[source]#

We build a stipule as a triangle the partially occultates the axil bud

openalea.rose.mockup.rose_geometry.faceTo(turtle, facingDirection)[source]#

This routine makes the turtle point its face to facingDirection, with a local up vector orthogonal to that direction. The lateral direction will be horizontal.

Parameters:
  • turtle – an openalea.plantgl.all::PglTurtle object that is to be oriented

  • facingDirection – an openalea.mtg.plantframe::Vector3 object that points to the future x direction.

Note:

the new heading of the turtle might be not as vertical as possible.

To do so, it should take to compute :

  • Lo = facingDirection cross (0,0,1) so that Lo is horizontal or very small.
    • if Lo is horizontal, so Head=Lo cross facingDirection,

    • else Head=(1,0,0) or so because facingDirection is about vertical, so there !

openalea.rose.mockup.rose_geometry.fineBudArray()[source]#

We define an array of 17 points to feed a revolution object Values are pairs of (ray, axial position) coordinates in a cylindrical mark.

Returns:

this array

openalea.rose.mockup.rose_geometry.floralOrgan(Heading, height, Radius, lSepalAngles=None, lSepalDims=None, lPetalAngles=None, lPetalDims=None, turtle=None, lNoSepals=None)[source]#

A function to draw floral organs with observed angles or observed stages of evolution in [BFV, CPV, SR, FO, FF], i.e :

  • Visible Flower Bud

  • Visible Petal’s Color

  • Refecting Sepals

  • Opened Flower

  • Faded Flower

Parameters:
  • Heading – a list of 3 Vector3

  • height – the height of the organ

  • Radius – the radius of the organ

  • lSepalAngles – the angles of the most and the less opened sepal, taken between the Heading direction and the axle of the sepal

  • lSepalDims – the dimensions of opened sepals

  • lPetalAngles – the angles of the most and the less opened petal, taken between the Heading direction and the axle of the petal

  • lpetalDims – the dimensions of opened petals

  • turtle – the turtle to draw onto.

  • lNoSepals – azimuths of real sepals (already drawn, so not to be created)

Todo:

add a param with the direction of existing sepals in the local mark, if any

openalea.rose.mockup.rose_geometry.flower(points, turtle=None, lSepales=None, diameter=None)[source]#

We compute the angles of the sepals, if some are deployed, we draw the organ.

Parameters:
  • points – points of the bud in the MTG object,

  • turtle – the turtle to draw the bud in.

openalea.rose.mockup.rose_geometry.flowerParameters(points, stade=None, PcStade=0, lSepales=None, flowerDiameter=None)[source]#

Computes a set of parameters to draw flowerbuds, that is:

  • the head direction of the flower (the local vertical in some sort)

  • the height of this organ

  • Radius : the direction that the bud would be looking to if it was an elf (a local x vector)

  • lSepalAngles : the opening angles of the sepals if any

  • lSepalDims : the length of the sepals if any

  • lPetalAngles : the opening angles of petals (if any)

  • lPetalDims : the dimension of petals (if any)

Parameters:
  • points – a list of MTG nodes we get information from

  • stade – todo : extract directly from points

  • PcStade – todo : extract directly from points

  • lSepales – list of 4 Vector3 points representing 0, 1 or 2 sepals

Returns:

(Heading, height, Radius, lSepalAngles, lSepalDims, lPetalAngles, lPetalDims)

openalea.rose.mockup.rose_geometry.getSepalsAzimuts(lSepales, Heading, Radius)[source]#

We compute the azimuth in the local coordinate system of the sepals that has been digitized.

The sepal axles coordinates are projected on the local “horizontal” plane, then we compute the angle they do with the local x-axis. To compute the projection V’ of a vector V on the local horizontal plane, we compute its projection H’ it onto the vertical axis H, then we substract H’ from V

Parameters:
  • lSepales – the list of sepals described by 4 points

  • Heading – the Up (or local z) direction of the floral organ.

  • Radius – the Front (or local x) direction of the floral organ.

Returns:

the list of angles.

openalea.rose.mockup.rose_geometry.getSiCo(angle)[source]#

Computes sine and cosine of the angle in radians

Parameters:

angle – the angle to process

Returns:

a pair (sin(angle), cos(angle))

openalea.rose.mockup.rose_geometry.getValuesFromSepals(lSepales, mainAxis)[source]#

We compute the angles between the sepals and the axis of the organ, and the length of the sepals.

  • a list containing the angle of the most opened sepal and the less opened sepal

  • a list containing respectively the length of the sepals

  • the front direction to orient the turtle’s mark

Parameters:
  • lSepales – a list of 3D points representing a sepal

  • mainAxis – a Vector3 that contains the main direction of the organ

Returns:

the lists of : (directions, dimensions) of sepals and the Front direction

openalea.rose.mockup.rose_geometry.inSector(candidat, center, marge)[source]#

We check if candidate is in the neighborhood of center modulo 2.Pi I.e. if candidate belongs to [center-marge, center+marge[

Parameters:
  • candidat – the value to be tested

  • center – the center of a left-closed and right opened interval

  • marge – the half-width of the interval

return: True if candidate belongs to the interval

openalea.rose.mockup.rose_geometry.makeNoOrgan()[source]#

makes nothing, so we can see details that are hidden otherwise.

Returns:

the function noThing that makes no change to the turtle.

openalea.rose.mockup.rose_geometry.mesh(geometry)[source]#
Parameters:

geometry – an PlantFrame geometry

Returns:

the meshed (triangulated) geometry

openalea.rose.mockup.rose_geometry.noThing(points, turtle=None, dummy=None, noWay='really')[source]#

A function that makes nothing

Parameters:
  • points – unused

  • turtle – unused

openalea.rose.mockup.rose_geometry.notation2flowerAngles(stade, PcStade)[source]#
Computes flower angles (in degrees) from stage notations, i.e :
  • the sepal angles list:
    • the most opend sepal

    • the less opened sepal

  • the petal angles list:
    • the most opend petal

    • the less opened petal

Parameters:
  • stade – a stage of flowering in “BFV … FF”

  • PcStade – the percent of evolution within the stage “stade”

Returns:

a list of two lists containing the angles described above

Bugs:

the fruits are not at their right place.

TODO : read from a .json dict a relationship established from the notations at the manip date (~/modeleChambre/documentation/PlantesDigit_Stades.xlsx)

openalea.rose.mockup.rose_geometry.numRang2folId(rank)[source]#
openalea.rose.mockup.rose_geometry.openCanFile(path, plantPath, plantName)[source]#

we open a file whose name is built whether the path is absolute or relative and with plantName.can as its basename

openalea.rose.mockup.rose_geometry.petalMatrix()[source]#

We define here a control points matrix with 3 columns and 9 rows for a bezier patch to draw a petal.

Returns:

the control points matrix

openalea.rose.mockup.rose_geometry.pointArray()[source]#
Returns:

an array of points to feed a revolution object

openalea.rose.mockup.rose_geometry.polygonLeaflet()[source]#

default function to draw up a leaflet

Returns:

a function that draws a raw leaflet.

openalea.rose.mockup.rose_geometry.position(n)[source]#

We compute the position of an MTG node in a openalea.mtg.plantframe::Vector3

Parameters:

n – the MTG node

Returns:

the position

openalea.rose.mockup.rose_geometry.printPoints(points)[source]#

prints the z coordinate of the points

Parameters:

points – unchecked list of 4 Vector3 (or Vector4 as well).

Note:

this a debugging purpose routine.

openalea.rose.mockup.rose_geometry.rawBud()[source]#
We define here a function (computeRawBud) that draws a raw bud

with a sphere and a cone.

Returns:

the function computeRawBud

openalea.rose.mockup.rose_geometry.rawLeaflet(points, turtle=None)[source]#

computes a leaflet geometry from 4 points

Parameters:
  • points – a set of coordinates of 4 points that are supposed to be the edge of the leaflet, turning anticlockwise.

  • turtle – an openalea.plantgl.all::PglTurtle object to draw objects onto

openalea.rose.mockup.rose_geometry.reconstructWithTurtle(mtg, visitor, powerParam)[source]#

Builds a scene from an MTG object using a vertex visitor function and a number to help compute the diameter of the nodes of the trunk.

Parameters:
  • mtg – an MTG object

  • visitor – The visitor function walks through the nodes of the MTG and checks for the symbols of the nodes to call the display function that fits this organ

  • powerParam – The numerical exponent helps to compute the diameters where they have not been measured, using a pipe model.

Calls:

the TurtleFrame function

Returns:

the 3D scene that was collected by TurtleFrame during the walk through the MTG.

Todo:

Add some constant in the arguments

openalea.rose.mockup.rose_geometry.reconstructionsWithTurtle(mtgs, visitor, powerParam, canFilesOutPath)[source]#

Builds a list of scenes from a list of MTG object using a vertex visitor function and a number to help compute the diameter of the nodes of the trunk.

Parameters:
  • mtgs – a list of MTG objects

  • visitor – The visitor function walks through the nodes of the MTG and checks for the symbols of the nodes to call the display function that fits this organ

  • powerParam – The numerical exponent helps to compute the diameters where they have not been measured, using a pipe model.

  • canFilesOutPath – a path to write can files to, either absolute, relative or empty. If absolute, can files are written there, If relative, it plugs into the dirname of the MTG file, If empty, no can files are generated.

Calls:

the TurtleFrame function

Returns:

the 3D scene that was collected by TurtleFrame during the walk through the MTG.

Todo:

Add some constant in the arguments

openalea.rose.mockup.rose_geometry.revolution(points=None, stride=8)[source]#

We build here a revolution volume (openalea.mtg.plantframe::Revolution) from the input points stride

Parameters:
  • points – a list of (ray, position). Must be of type openalea.mtg.plantframe::Vector2

  • stride – the stride of the revolution figure (nr of interpolated points along a tour of rotation.

Returns:

the revolution figure

openalea.rose.mockup.rose_geometry.revolutionBud(revVol=None)[source]#

We define a nested function (drawRevBud) that returns a function that draws a bud from a revolution volume

Parameters:

revVol – a revolution volume that will be scaled and oriented

Returns:

the drawRevBud function

openalea.rose.mockup.rose_geometry.scene_union(somescenes=None)[source]#

glue MTGs’ scenes together in a big scene

openalea.rose.mockup.rose_geometry.simpleFruit(colorFunc=None)[source]#

We define here a function “rawFruit” to draw up a raw fruit

Parameters:

colorFunc – a function that sets the color of the turtle

Returns:

the rawFruit function

openalea.rose.mockup.rose_geometry.traverse_with_turtle(g, vid, visitor, turtle=None)[source]#

This function is called from within TurtleFrame. It explores the part of an MTG tree being under the node number “vid”. It walks through that sub-MTG using the pre_order2_with_filter algorithm.

Parameters:
  • g – the MTG object we are working on

  • vid – the vertex ID inside the MTG

  • visitor – the function that visits the nodes of the sub-MTG

See:

openalea/mtg/traversal.py

Note:

this function was inspired by OpenAlea.Mtg-0.9.5-py2.6.egg/openalea/mtg/turtle.py

openalea.rose.mockup.rose_geometry.traverse_with_turtle4CAN02(g, vid, visitor, turtle=None, canFacts=None)[source]#

This function is called from within TurtleFrame. It explores the part of an MTG tree being under the node number “vid”. It walks through that sub-MTG using the pre_order2_with_filter algorithm.

Parameters:
  • g – the MTG object we are working on

  • vid – the vertex ID inside the MTG

  • visitor – the function that visits the nodes of the sub-MTG

See:

openalea/mtg/traversal.py

Note:

this function was derived from OpenAlea.Mtg-0.9.5-py2.6.egg/openalea/mtg/turtle.py

openalea.rose.mockup.rose_geometry.vertexVisitor(leaf_factory=None, bud_factory=None, sepal_factory=None, flower_factory=None, fruit_factory=None, knop_factory=None, stipuLe_factory=None)[source]#

We define here a function (visitor) that is used visit MTG nodes.

Parameters:
  • leaf_factory – the function that draws the leaves

  • bud_factory – the function that draws the buds

  • sepal_factory – the function that draws the sepals

  • flower_factory – the function that draws the flowers

  • fruit_factory – the function that draws the fruits

  • knop_factory – the function that draws the knops

Returns:

the visitor function

Todo:

check the arity of all the versions of bud_factory

openalea.rose.mockup.rose_geometry.vertexVisitor4CAN02(leaf_factory=None, bud_factory=None, sepal_factory=None, flower_factory=None, fruit_factory=None, knop_factory=None, stipuLe_factory=None, pathToOrgIds=None, canFacts=None)[source]#

We define here a function (visitor) that is used visit MTG nodes.

Parameters:
  • leaf_factory – the function that draws the leaves

  • bud_factory – the function that draws the buds

  • sepal_factory – the function that draws the sepals

  • flower_factory – the function that draws the flowers

  • fruit_factory – the function that draws the fruits

  • knop_factory – the function that draws the knops

  • canFacts – data to build the CAN02 files

Returns:

the visitor function

Todo:

check the arity of all the versions of bud_factory

openalea.rose.mockup.rose_geometry.writeCanFile(fOut, numTri, organNum, organType, plantNum, jour=1, geometrie=None)[source]#

We write a line of data. This is test stuff ; i.e. to be called out of plantFrame

openalea.rose.mockup.rose_process module#

class openalea.rose.mockup.rose_process.Decode_liste[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

class openalea.rose.mockup.rose_process.RunXV[source]#

Bases: Node

add_input(**kargs)#

Create an input port

add_output(**kargs)#

Create an output port

property block#

todo

property caption#

Return the node caption

clear_inputs()#
clear_outputs()#
close()#
copy_to(other)#
property delay#

todo

eval()#

Evaluate the node by calling __call__ Return True if the node needs a reevaluation and a timed delay if the node needs a reevaluation at a later time.

exclusive_command(who, command, *args, **kargs)#

Executes a call “command” and if it triggers any signal from this observed object along the way, “who” will be the only one to be notified

classmethod extend_ad_hoc_slots(name, _type, default, *args)#

Describes which data and what type are expected to be found in the ad_hoc dictionnary. Used by views.__ad_hoc_slots__ = {} Created at runtime __ad_hoc_from_old_map__ = {}.

get_ad_hoc_dict()#
get_block()#

todo

get_caption()#

Return the node caption

get_delay()#

todo

get_factory()#

Return the factory of the node (if any)

get_id()#
get_input(index_key)#

Return the input value for the specified index/key

get_input_port(name=None)#

Gets port by name.

Long description of the function functionality.

Parameters:

name (string) – the name of the port

Returns:

Input port characterized by name

Return type:

InputPort

get_input_state(index_key)#
get_lazy()#

todo

get_nb_input()#

Return the nb of input ports

get_nb_output()#

Return the nb of output ports

get_output(index_key)#

Return the output for the specified index/key

get_process_obj()#

Return the process obj

get_raise_exception()#
get_tip()#
get_user_application()#

todo

invalidate()#

Invalidate node

static is_deprecated_event(event)#
is_port_hidden(index_key)#

Return the hidden state of a port

property lazy#

todo

mimetype = 'openalea/node'#
notify_listeners(event)#

Send a notification to all listeners

Parameters:

event – an object to pass to the notify function

output(key)#
post_notification()#
property process_obj#

Return the process obj

property raise_exception#
register_listener(listener)#

Add listener to list of listeners. If the observed is currently notifying, the registration is delayed until it finishes.

reload()#

Reset ports

reset()#

Reset ports

set_block(data)#

todo

set_caption(newcaption)#

Define the node caption

set_compositenode(upper)#
set_data(key, value, notify=True)#

Set internal node data

set_delay(delay)#

todo

set_factory(factory)#

Set the factory of the node (if any) and uptdate caption

set_id(id)#
set_input(key, val=None, notify=True)#

Define the input value for the specified index/key

set_input_state(index_key, state)#

Set the state of the input index/key (state is a string)

set_io(inputs, outputs)#

Define the number of inputs and outputs

Parameters:
  • inputs – list of dict(name=’X’, interface=IFloat, value=0)

  • outputs – list of dict(name=’X’, interface=IFloat)

set_lazy(data)#

todo

set_output(key, val)#

Define the input value for the specified index/key

set_port_hidden(index_key, state)#

Set the hidden state of a port.

Parameters:
  • index_key – the input port index.

  • state – a boolean value.

set_raise_exception(val)#
set_user_application(data)#

todo

to_script()#

Script translation of this node.

transfer_listeners(newObs)#

Takes all this observed’s listeners, unregisters them from itself and registers them to the newObs, calling listener.change_observed if implemented

unregister_listener(listener)#

Remove listener from the list of listeners

unvalidate_input(index_key, notify=True)#

Unvalidate node and notify listeners.

This method is called when the input value has changed.

property user_application#

todo

openalea.rose.mockup.rose_process.decode_liste(codes=None, colonnes=None)[source]#

openalea.rose.mockup.rose_time module#

openalea.rose.mockup.rose_time.bySegments(x, Xmin, Xmax, Ymin, Ymax)[source]#

computes a value for a function defined by segments : Xmin, Xmax, Ymin, Ymax.

Pre-conditions :

  • Xmin < Xmax

Post conditions:
  • x < Xmin : return Ymin

  • x > Xmax : return Ymax

  • else :

  • K= (Ymax-Ymin) / (Xmax - Xmin)

  • return Ymin + K * (x-Xmin)

Parameters:
  • x – the x value

  • Xmin – the low value of the x range

  • Xmax – the high value of the x range

  • Ymin – the low value of the y range

  • Ymax – the high value of the y range

Returns:

the interpolated y value

openalea.rose.mockup.rose_time.checkIfIn(left, right, value)[source]#

Ensure that “value” meets the following conditions :

  • if left <= right :
    • value will be inside [left - right]

  • else :
    • value will be outside ]right - left[

Parameters:
  • left – a limit that is allowed to be lower than “value”

  • right – a limit that is allowed to be higher than “value”

  • value – the value to be checked

Returns:

either “value” if it passes the test, or left, or right, depending on whether is closest to “value”

Note:

the result is assigned a forced value when calling checkIfIn (guard,guard, value)

openalea.rose.mockup.rose_time.computeStage(stade, avancement)[source]#
openalea.rose.mockup.rose_time.innerPetalAngle(time01)[source]#
openalea.rose.mockup.rose_time.innerSepalAngle(time01)[source]#
openalea.rose.mockup.rose_time.invBySegments(y, Xmin, Xmax, Ymin, Ymax)[source]#

computes the reverse function of bySegments : preconditions : Ymin != Ymax

Parameters:
  • y – the y value

  • Xmin – the low value of the x range

  • Xmax – the high value of the x range

  • Ymin – the low value of the y range

  • Ymax – the high value of the y range

Returns:

the interpolated x value

Warning:

we only process positive slopes.

openalea.rose.mockup.rose_time.invertInnerSepalAngle(angle)[source]#
openalea.rose.mockup.rose_time.invertOuterPetalAngle(angle)[source]#
openalea.rose.mockup.rose_time.invertOuterSepalAngle(angle)[source]#
openalea.rose.mockup.rose_time.notation2flowerAngles(stade, avancement=0.0, sepalAngles=None, flowerAngles=None)[source]#

translate observations to flower time01 @param stade : a state of flower devlt in [BVF, CPV, SR, FO, FF] @param avancement : step in the current stade (0 .. 100) percent @param sepalAngles : parameters to draw sepals if they have been caught up in the MTG : [length of sepal, angle/vertical] @param flowerAngles : parameters to draw sepals if they have been caught up in the MTG : [length of petal, angle/vertical] TODO : separer angles et dimensions

openalea.rose.mockup.rose_time.outerPetalAngle(time01)[source]#
openalea.rose.mockup.rose_time.outerSepalAngle(time01)[source]#
openalea.rose.mockup.rose_time.test()[source]#