class core.metadatadict.HasAdHoc[source]

Bases: object

classmethod extend_ad_hoc_slots(name, _type, default, *args)[source]

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()[source]
class core.metadatadict.MetaDataDict(**kwargs)[source]

Bases: openalea.grapheditor.observer.Observed

Attach meta data of a graphical representation of a graph component. This metadata can be used to customize the appearance of the node.

add_metadata(key, valType, notify=True)[source]

Creates a new entry in the meta data registry. The data to set will be of the given 'valType' type.

do_type_checking(val)[source]
get_metadata(key)[source]

Gets the value of a meta data.

get_metadata_type(key)[source]

Gets the value of a meta data.

keys()[source]
remove_metadata(key, valType=None, notify=True)[source]

Removes an entry in the meta data registry.

set_metadata(key, value, notify=True)[source]

Sets the value of a meta data.

set_slots(slots, useSlotDefaults=True)[source]
simulate_full_data_change(observer=None, source=None)[source]
update(other)[source]

Previous topic

<no title>

Next topic

<no title>

This Page