Reference guide#
openalea.color.colormap module#
Download the source file ../../../src/openalea/color/colormap.py.
Colormap class
- class openalea.color.colormap.ColorMap(minval=0.0, maxval=1.0)[source]#
Bases:
objectA RGB color map, between 2 colors defined in HSV code
- Examples:
>>> minh,maxh = minandmax([height(i) for i in s2]) >>> colormap = ColorMap(minh,maxh) >>> s3 = [ Shape(i.geometry, Material >>> (Color3(colormap(height(i))), 1), i.id) >>> for i in s2]
openalea.color.py_color module#
Download the source file ../../../src/openalea/color/py_color.py.
Colormap Nodes
- class openalea.color.py_color.BlackNode(inputs, outputs)[source]#
Bases:
FixedColorNode- 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)#
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 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.color.py_color.BlueNode(inputs, outputs)[source]#
Bases:
FixedColorNode- 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)#
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 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.color.py_color.ColorNode(inputs, outputs)[source]#
Bases:
NodeSmall color 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)#
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 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.color.py_color.FixedColorNode(inputs, outputs)[source]#
Bases:
NodeSmall color 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)#
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 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.color.py_color.GreenNode(inputs, outputs)[source]#
Bases:
FixedColorNode- 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)#
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 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.color.py_color.RedNode(inputs, outputs)[source]#
Bases:
FixedColorNode- 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)#
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 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.color.py_color.WhiteNode(inputs, outputs)[source]#
Bases:
FixedColorNode- 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)#
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 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.color.py_color.col_item(ind, color_list=[(0, 0, 0), (255, 0, 0), (0, 255, 0), (0, 0, 255), (255, 255, 0), (0, 255, 255), (255, 0, 255), (128, 255, 0), (0, 128, 255), (255, 0, 128), (0, 255, 128), (128, 0, 255), (255, 128, 0), (128, 128, 255), (255, 128, 128), (128, 255, 128), (255, 255, 255)])[source]#
openalea.csv.pycsv module#
Download the source file ../../../src/openalea/csv/pycsv.py.
openalea.data.array.arrays module#
Download the source file ../../../src/openalea/data/array/arrays.py.
Data Nodes
- class openalea.data.array.arrays.PyArray[source]#
Bases:
NodePython array
- 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()#
- codename = ['signed integer (1)', 'unsigned integer (1)', 'unicode character (2)', 'signed short (2)', 'unsigned short (2)', 'signed integer (2)', 'unsigned integer (2)', 'signed integer (4)', 'unsigned integer (4)', 'signed long long (8)', 'unsigned long long (8)', 'floating point (4)', 'floating point (8)']#
- 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)#
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 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
- typecodes = ['b', 'B', 'u', 'h', 'H', 'i', 'I', 'l', 'L', 'q', 'Q', 'f', 'd']#
- 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.data.data module#
Download the source file ../../../src/openalea/data/data.py.
Data Nodes
- class openalea.data.data.Bool(ins, outs)[source]#
Bases:
NodeBoolean value
- Parameters:
ins – input 1
outs – input 2
- 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)#
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 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.data.data.DateTime(inputs=(), outputs=())[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)#
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 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.data.data.Dict(inputs=(), outputs=())[source]#
Bases:
NodePython Dictionary
- 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)#
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 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.data.data.DirName(inputs=(), outputs=())[source]#
Bases:
NodeA directory path
- 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)#
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 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.data.data.FileName(inputs=(), outputs=())[source]#
Bases:
NodeA file path
- 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)#
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 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.data.data.Float(ins, outs)[source]#
Bases:
Node- Parameters:
ins – The stored value
outs – todo
- 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)#
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 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.data.data.FloatScy(ins, outs)[source]#
Bases:
NodeFloat Variable
- Parameters:
ins – The stored value in string format
outs – todo
- 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)#
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 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.data.data.Int(ins, outs)[source]#
Bases:
NodeInt Node
- Parameters:
ins – the stored value (default is zero)
outs – the integer value
- 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)#
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 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.data.data.List(inputs=(), outputs=())[source]#
Bases:
NodePython List
- 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)#
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 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.data.data.PackageDir(inputs=(), outputs=())[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)#
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 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.data.data.Pair(inputs=(), outputs=())[source]#
Bases:
NodePython 2-uple generator
- 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)#
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 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.data.data.String(inputs=(), outputs=())[source]#
Bases:
NodeString Variable
- 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)#
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 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.data.data.Text(inputs=(), outputs=())[source]#
Bases:
NodeText Variable
- 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)#
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 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.data.data.Tuple3(inputs=(), outputs=())[source]#
Bases:
NodePython 3-uple generator
- 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)#
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 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.data.data.Variable(inputs=(), outputs=())[source]#
Bases:
NodeTransmit obj to output and display str as caption
- 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)#
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 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.data.dict.dicts module#
Download the source file ../../../src/openalea/data/dict/dicts.py.
Data Nodes
- class openalea.data.dict.dicts.Dict(inputs=(), outputs=())[source]#
Bases:
NodePython Dictionary
- 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)#
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 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.data.dict.dicts.EditDict(inputs=(), outputs=())[source]#
Bases:
NodePython Dictionary
- 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)#
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 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.data.dict.dicts.Pair(inputs=(), outputs=())[source]#
Bases:
NodePython 2-uple generator
- 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)#
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 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.data.dict.dicts.Tuple3(inputs=(), outputs=())[source]#
Bases:
NodePython 2-uple generator
- 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)#
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 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.data.list.lists module#
Download the source file ../../../src/openalea/data/list/lists.py.
Data Nodes
- class openalea.data.list.lists.List(inputs=(), outputs=())[source]#
Bases:
NodePython List
- 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)#
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 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.data.list.lists.Slice(inputs=(), outputs=())[source]#
Bases:
NodeSlice a Python list
- 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)#
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 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.data.set.sets module#
Download the source file ../../../src/openalea/data/set/sets.py.
Data Nodes
- openalea.data.set.sets.py_difference(set1, set2)[source]#
Return the difference of two sets as a new sets.
- openalea.data.set.sets.py_intersection(set1, set2)[source]#
Return the intersection of two sets as a new sets.
- openalea.data.set.sets.py_issubset(set1, set2)[source]#
Report whether another set contains this set.
- openalea.data.set.sets.py_issuperset(set1, set2)[source]#
Report whether this set contains another set.
openalea.data.tuple.tuples module#
Download the source file ../../../src/openalea/data/tuple/tuples.py.
Data Nodes
- class openalea.data.tuple.tuples.Pair(inputs=(), outputs=())[source]#
Bases:
NodePython 2-uple generator
- 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)#
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 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.data.tuple.tuples.Tuple(inputs=(), outputs=())[source]#
Bases:
NodePython Tuple
- 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)#
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 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.data.tuple.tuples.Tuple3(inputs=(), outputs=())[source]#
Bases:
NodePython 2-uple generator
- 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)#
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 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.file.files module#
Download the source file ../../../src/openalea/file/files.py.
File manipulation
- class openalea.file.files.DirName(inputs=(), outputs=())[source]#
Bases:
NodeBrowser to select a directory name
- Parameters:
object – a string representing a valid directory path name
- Returns:
the directory path name (string)
- 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)#
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 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.file.files.FileName[source]#
Bases:
objectBrowser to select a file pathname
- Parameters:
object – a file pathname
- Returns:
the filename path string
- class openalea.file.files.PackageDir(inputs=(), outputs=())[source]#
Bases:
NodePackage dir
- 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)#
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 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.functional.functional module#
Download the source file ../../../src/openalea/functional/functional.py.
Standard python functions for functional programming.
- class openalea.functional.functional.pyfunction(ins, outs)[source]#
Bases:
NodeFunction method
- Parameters:
ins – the function code
outs – the function object
- 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)#
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 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.math.maths module#
Download the source file ../../../src/openalea/math/maths.py.
openalea.model.models module#
Download the source file ../../../src/openalea/model/models.py.
Model nodes
openalea.pickling.pickling module#
Download the source file ../../../src/openalea/pickling/pickling.py.
Python Nodes
openalea.plotools.plotable module#
Download the source file ../../../src/openalea/plotools/plotable.py.
Definition of plotable object
Mainly based on matplotlib.
- todo:
Nothing.
- bug:
None known.
- organization:
INRIA
szymon.stoma 82471946
- class openalea.plotools.plotable.VisualSequence(x=[], y=[], z=[], legend='', linestyle='', marker='', color='', bins=10, **keys)[source]#
Bases:
objectObject containing basic plot information.
<Long description of the function functionality.>
- property x#
Returrns the X array.
- property y#
Get the y array of values.
- openalea.plotools.plotable.change_VisualSequence_HistView(vis_seq, new_bins, new_color)[source]#
Returns vis_seq object with values changed from default
- Parameters:
vis_seq (VisualSequence) – object to be modified
new_bins (int) – binning for the histogram
new_color (string) – a matplotlib color arg
- Returns:
Updated object.
- openalea.plotools.plotable.change_VisualSequence_PointLineView(vis_seq, new_legend, new_linestyle, new_marker, new_color)[source]#
Returns vis_seq object with values changed from default
- Parameters:
- vis_seqVisualSequence
object to be modified
- new_legendstring
legend of a line
- new_linestylestring
One of - : -. -
- new_markerstring
One of + , o . s v x > <,
- new_colorstring
A matplotlib color arg
- Return type:
VisualSequence
- Returns:
Updated object.
- openalea.plotools.plotable.dict2VisualSequence(dict2vis_seq={}, marker='o', color='g', **keys)[source]#
generates visual sequence2D with keys as x and values as y
- Parameters:
dict2vis_seq (dict{float:float}) – contains a list of object to display
marker (string) – the marker for the point-line
color (string) – the color
- openalea.plotools.plotable.display_VisualSequence(vis_seq_list=[], visualisation='', title='', xlabel='', ylabel='', figure=0, **keys)[source]#
Plots 2D visual sequences.
- Parameters:
- vis_seq_listVisualSequence
Contains a list of object to display
- titlestring
Title of the plot.
- xlabelstring
X axis description
- ylabelstring
Y label description
- openalea.plotools.plotable.display_VisualSequence_as_Hist(vis_seq=[], title='', xlabel='', ylabel='', figure=0, **keys)[source]#
plots 2d visual sequences.
- Parameters:
vis_seq (VisualSequence) – contains a list of object to display
title (string) – title of the plot
xlabel (string) – x-axis description
ylabel (string) – y-axis description
figure – figure’s number
- openalea.plotools.plotable.display_VisualSequence_as_PointLine(vis_seq_list=[], title='', xlabel='', ylabel='', figure=0, **keys)[source]#
Plots 2D visual sequences.
- Parameters:
- vis_seq_listVisualSequence
Contains a list of object to display
- titlestring
Title of the plot.
- xlabelstring
X axis description
- ylabelstring
Y label description
- openalea.plotools.plotable.seqs2VisualSequence(seq1=[], seq2=[], marker='o', color='b', **keys)[source]#
generates visual sequence2D with list1 as x and list2 as y
- Parameters:
seq1 (iterable) – contains the x-sequence
seq2 (iterable) – contains the y-sequence
marker (string) – the marker for the point-line
color (string) – the color
openalea.python.python module#
Download the source file ../../../src/openalea/python/python.py.
Python Nodes
- class openalea.python.python.PyGetItem(inputs=(), outputs=())[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)#
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 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.python.python.extract(indexable, keys)[source]#
Extract from indexable object indexed by keys
openalea.spatial.distribGen module#
Download the source file ../../../src/openalea/spatial/distribGen.py.
Set of distributions
- class openalea.spatial.distribGen.aggregative_distrib[source]#
Bases:
NodeBasic distribution(type) -> distribution func
- 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
- distr_func = {'NemanScott': <function neman_scott__distribution>}#
- 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)#
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 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.spatial.distribGen.basic_distrib[source]#
Bases:
NodeBasic distribution(type) -> distribution func :input: Type of the function. :output: function that generates distribution.
- 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
- distr_func = {'Random': <function random_distribution>, 'Regular': <function regular_distribution>}#
- 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)#
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 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.spatial.distribGen.neman_scott__distrib(n=100, xr=(0, 1), yr=(0, 1), **kwds)[source]#
simulation d’une realisation du processus de type Neman Scott (Nb Agregats, Rayon Agregats)
- openalea.spatial.distribGen.neman_scott__distribution(n=10, cl_nbr=2, cl_radius=0.2)[source]#
simulation d’une realisation du processus de type Neman Scott (Nb Agregats, Rayon Agregats)
openalea.stand.stand_modelling module#
Download the source file ../../../src/openalea/stand/stand_modelling.py.
Set of spatial distribution for stands
openalea.string.strings module#
Download the source file ../../../src/openalea/string/strings.py.
openalea.system.systemnodes module#
Download the source file ../../../src/openalea/system/systemnodes.py.
System Nodes
openalea.system.ui_vprint module#
Download the source file ../../../src/openalea/system/ui_vprint.py.
tobe done
openalea.system.vprint module#
Download the source file ../../../src/openalea/system/vprint.py.
to be done
- class openalea.system.vprint.VPrint(*args)[source]#
Bases:
NodeVisual Print In 0 : The object to display In 1 : The caption of the display In 2 : The function to transform the object into a string (default=str) In 3 : Blocking display
Out 0 : The object
- 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)#
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 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.system.vprint.VisualPrintDialog(parent=None)[source]#
Bases:
QDialog,Ui_Dialog- Accepted = 1#
- DrawChildren = 2#
- DrawWindowBackground = 1#
- IgnoreMask = 4#
- PdmDepth = 6#
- PdmDevicePixelRatio = 11#
- PdmDevicePixelRatioScaled = 12#
- PdmDpiX = 7#
- PdmDpiY = 8#
- PdmHeight = 2#
- PdmHeightMM = 4#
- PdmNumColors = 5#
- PdmPhysicalDpiX = 9#
- PdmPhysicalDpiY = 10#
- PdmWidth = 1#
- PdmWidthMM = 3#
- Rejected = 0#
- class RenderFlags#
- class RenderFlags(f: QWidget.RenderFlags | QWidget.RenderFlag)
- class RenderFlags(a0: QWidget.RenderFlags)
Bases:
simplewrapper
- accept(self)#
- accepted#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- activateWindow(self)#
- addActions(self, actions: Iterable[QAction])#
- adjustSize(self)#
- backgroundRole(self) QPalette.ColorRole#
- baseSize(self) QSize#
- childrenRect(self) QRect#
- childrenRegion(self) QRegion#
- clearFocus(self)#
- clearMask(self)#
- connectNotify(self, signal: QMetaMethod)#
- contentsMargins(self) QMargins#
- contentsRect(self) QRect#
- contextMenuPolicy(self) Qt.ContextMenuPolicy#
- create(self, window: PyQt5.sip.voidptr = None, initializeWindow: bool = True, destroyOldWindow: bool = True)#
- createWindowContainer(window: QWindow | None, parent: QWidget | None = None, flags: Qt.WindowFlags | Qt.WindowType = 0) QWidget#
- cursor(self) QCursor#
- customContextMenuRequested#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- deleteLater(self)#
- destroyed#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- disconnectNotify(self, signal: QMetaMethod)#
- dumpObjectInfo(self)#
- dumpObjectTree(self)#
- effectiveWinId(self) PyQt5.sip.voidptr#
- ensurePolished(self)#
- findChild(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT#
- findChild(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) QObjectT
- findChildren(self, type: type[QObjectT], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]#
- findChildren(self, types: tuple[type[QObjectT], ...], name: str | None = '', options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, type: type[QObjectT], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, types: tuple[type[QObjectT], ...], regExp: QRegExp, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, type: type[QObjectT], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- findChildren(self, types: tuple[type[QObjectT], ...], re: QRegularExpression, options: Qt.FindChildOptions | Qt.FindChildOption = Qt.FindChildrenRecursively) list[QObjectT]
- finished#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- focusPolicy(self) Qt.FocusPolicy#
- font(self) QFont#
- fontInfo(self) QFontInfo#
- fontMetrics(self) QFontMetrics#
- foregroundRole(self) QPalette.ColorRole#
- frameGeometry(self) QRect#
- frameSize(self) QSize#
- geometry(self) QRect#
- getContentsMargins(self)#
- grab(self, rectangle: QRect = QRect(QPoint(0, 0), QSize(-1, -1))) QPixmap#
- grabGesture(self, type: Qt.GestureType, flags: Qt.GestureFlags | Qt.GestureFlag = Qt.GestureFlags())#
- grabKeyboard(self)#
- grabShortcut(self, key: QKeySequence | QKeySequence.StandardKey | str | None | int, context: Qt.ShortcutContext = Qt.WindowShortcut) int#
- hide(self)#
- inputMethodHints(self) Qt.InputMethodHints#
- inputMethodQuery(self, a0: Qt.InputMethodQuery) Any#
- layoutDirection(self) Qt.LayoutDirection#
- locale(self) QLocale#
- lower(self)#
- mapFromGlobal(self, a0: QPoint) QPoint#
- mapFromParent(self, a0: QPoint) QPoint#
- mapToGlobal(self, a0: QPoint) QPoint#
- mapToParent(self, a0: QPoint) QPoint#
- mask(self) QRegion#
- maximumSize(self) QSize#
- metric(self, a0: QPaintDevice.PaintDeviceMetric) int#
- minimumSize(self) QSize#
- minimumSizeHint(self) QSize#
- normalGeometry(self) QRect#
- objectNameChanged#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- open(self)#
- overrideWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)#
- overrideWindowState(self, state: Qt.WindowStates | Qt.WindowState)#
- palette(self) QPalette#
- pos(self) QPoint#
- pyqtConfigure(...)#
Each keyword argument is either the name of a Qt property or a Qt signal. For properties the property is set to the given value which should be of an appropriate type. For signals the signal is connected to the given value which should be a callable.
- raise_(self)#
- rect(self) QRect#
- reject(self)#
- rejected#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- releaseKeyboard(self)#
- releaseMouse(self)#
- render(self, target: QPaintDevice | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren))#
- render(self, painter: QPainter | None, targetOffset: QPoint = QPoint(), sourceRegion: QRegion = QRegion(), flags: QWidget.RenderFlags | QWidget.RenderFlag = QWidget.RenderFlags(QWidget.RenderFlag.DrawWindowBackground | QWidget.RenderFlag.DrawChildren)) None
- repaint(self)#
- repaint(self, x: int, y: int, w: int, h: int) None
- repaint(self, a0: QRect) None
- repaint(self, a0: QRegion) None
- retranslateUi(Dialog)#
- saveGeometry(self) QByteArray#
- setBackgroundRole(self, a0: QPalette.ColorRole)#
- setContentsMargins(self, left: int, top: int, right: int, bottom: int)#
- setContentsMargins(self, margins: QMargins) None
- setContextMenuPolicy(self, policy: Qt.ContextMenuPolicy)#
- setCursor(self, a0: QCursor | Qt.CursorShape)#
- setFocusPolicy(self, policy: Qt.FocusPolicy)#
- setFont(self, a0: QFont)#
- setForegroundRole(self, a0: QPalette.ColorRole)#
- setInputMethodHints(self, hints: Qt.InputMethodHints | Qt.InputMethodHint)#
- setLayoutDirection(self, direction: Qt.LayoutDirection)#
- setLocale(self, locale: QLocale)#
- setPalette(self, a0: QPalette)#
- setParent(self, parent: QWidget | None)#
- setParent(self, parent: QWidget | None, f: Qt.WindowFlags | Qt.WindowType) None
- setSizePolicy(self, a0: QSizePolicy)#
- setSizePolicy(self, hor: QSizePolicy.Policy, ver: QSizePolicy.Policy) None
- setWindowFlags(self, type: Qt.WindowFlags | Qt.WindowType)#
- setWindowIcon(self, icon: QIcon)#
- setWindowModality(self, windowModality: Qt.WindowModality)#
- setWindowState(self, state: Qt.WindowStates | Qt.WindowState)#
- setupUi(Dialog)#
- show(self)#
- showFullScreen(self)#
- showMaximized(self)#
- showMinimized(self)#
- showNormal(self)#
- size(self) QSize#
- sizeHint(self) QSize#
- sizeIncrement(self) QSize#
- sizePolicy(self) QSizePolicy#
- staticMetaObject = <PyQt5.QtCore.QMetaObject object>#
- ungrabGesture(self, type: Qt.GestureType)#
- unsetCursor(self)#
- unsetLayoutDirection(self)#
- unsetLocale(self)#
- update(self)#
- update(self, a0: QRect) None
- update(self, a0: QRegion) None
- update(self, ax: int, ay: int, aw: int, ah: int) None
- updateGeometry(self)#
- updateMicroFocus(self)#
- visibleRegion(self) QRegion#
- winId(self) PyQt5.sip.voidptr#
- windowFlags(self) Qt.WindowFlags#
- windowIcon(self) QIcon#
- windowIconChanged#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowIconTextChanged#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowModality(self) Qt.WindowModality#
- windowState(self) Qt.WindowStates#
- windowTitleChanged#
int = …, arguments: Sequence = …) -> PYQT_SIGNAL
types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.
- Type:
pyqtSignal(*types, name
- Type:
str = …, revision
- windowType(self) Qt.WindowType#