2D-visualisation function

2D-Visualization function for strawberry on MTG

openalea.strawberry.visu2d.color_code(g, complete, plantule=False)[source]
openalea.strawberry.visu2d.complete_module(g)[source]

Return properties incomplete or complete module

Algorithm:
module are complete:

if module are visible and terminated by an Inflorescence (HT) (propertie=True) else module are incomplete (all module terminated by ht or bt) (property=False)

openalea.strawberry.visu2d.drawable(g)[source]
openalea.strawberry.visu2d.graph_layout(g)[source]

Compute the distance between branch to minimize the overlaping between crowns.

openalea.strawberry.visu2d.is_visible(g, v)[source]

Returns bolean value if module are visible or not Module are considered as visible when axis contains at least one F

openalea.strawberry.visu2d.my_visitor(g, v, turtle, time=0)[source]
openalea.strawberry.visu2d.plot2d(g, vids=[], dist=[5, 5, 6, 8, 8, 100], by=[], display=True, complete=False)[source]
openalea.strawberry.visu2d.type_of_crown(vid, g)[source]

Returns the type of crown.

Definition of type of crown (1, 2, 3):
  • principal crown (1): label == T

  • branch_crown (2)

    parent(component_roots()[0]) : if successor() == F

  • extension_crown (3): contains(HT, ht, bt)

  • error (4)

openalea.strawberry.visu2d.visible_modules(g)[source]