Skip to content

PointListHandlesCreator

implementation of the handle creator

PointListHandlesCreator

Canonical path: Utils.HandleCreator.PointListHandlesCreator.PointListHandlesCreator

implementation of the handle creator

point_list staticmethod

point_list(
    handle_list: HandleList,
    name: str,
    handle_points: list[Point2D] | list[Point3D],
    info_text: str = "",
    info_text_template: Template = Template(""),
    index_offset: int = 0,
    delete_point: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
    plane: Plane3D | None = None,
)

create point move handles

Parameters:

  • handle_list (HandleList) –

    handle list

  • name (str) –

    handle parameter name

  • handle_points (list[Point2D] | list[Point3D]) –

    handle points

  • info_text (str, default: '' ) –

    info text

  • info_text_template (Template, default: Template('') ) –

    info text template

  • index_offset (int, default: 0 ) –

    index offset for the info text

  • delete_point (bool, default: False ) –

    enable delete point state

  • owner_element (BaseElementAdapter, default: BaseElementAdapter() ) –

    owner element of the handle (in element modification mode)

  • plane (Plane3D | None, default: None ) –

    input plane for the handle_point movement

point_list_segment_center staticmethod

point_list_segment_center(
    handle_list: HandleList,
    name: str,
    handle_points: list[Point2D] | list[Point3D],
    info_text: str = "",
    info_text_template: Template = Template(""),
    index_offset: int = 0,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
    plane: Plane3D | None = None,
)

create point handles from a segment center to insert and move

Parameters:

  • handle_list (HandleList) –

    handle list

  • name (str) –

    handle parameter name

  • handle_points (list[Point2D] | list[Point3D]) –

    handle points

  • info_text (str, default: '' ) –

    info text

  • info_text_template (Template, default: Template('') ) –

    info text template

  • index_offset (int, default: 0 ) –

    index offset for the info text

  • owner_element (BaseElementAdapter, default: BaseElementAdapter() ) –

    owner element of the handle (in element modification mode)

  • plane (Plane3D | None, default: None ) –

    input plane for the handle_point movement

Placeholder