Skip to content

BarsRepresentationUtil

implementation of the bars representation utility class

BarsRepresentationUtil

Canonical path: Utils.Reinforcement.BarsRepresentationUtil.BarsRepresentationUtil

implementation of the bars representation utility class

__init__

__init__(bars_rep: BarsRepresentation)

initialize

Parameters:

are_all_bars_visible_in_representation

are_all_bars_visible_in_representation() -> bool

check if all bars are visible in the representation

Returns:

  • bool

    all bars are visible in the representation

get_local_min_max_of_placement

get_local_min_max_of_placement(placement_line: Line2D) -> MinMax2D

get the min/max box of the placement

Parameters:

  • placement_line (Line2D) –

    placement line

Returns:

  • MinMax2D

    min/max box of the representation elements

get_min_max_of_placements staticmethod

get_min_max_of_placements(
    bars_ref_elements: list[BaseElementAdapter], direction_angle: Angle
) -> MinMax2D

get the min/max box of the placements defined by the representation elements local to the direction angle

Parameters:

  • bars_ref_elements (list[BaseElementAdapter]) –

    representation elements

  • direction_angle (Angle) –

    direction angle

Returns:

  • MinMax2D

    min/max box of the representation elements

is_placement_labeling

is_placement_labeling() -> tuple[bool, bool]

check if the labeling is for the placement

Returns:

  • tuple[bool, bool]

    label is for the placement, line representation state

Placeholder