Skip to content

HandleCreator

implementation of the handle creator

HandleCreator

Canonical path: Utils.HandleCreator.HandleCreator

implementation of the handle creator

move staticmethod

move(
    handle_list: list[HandleProperties],
    name: str,
    placement_point: Point3D,
    info_text: str = "",
)

create a handle for a move

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • placement_point (Point3D) –

    placement move handle

  • info_text (str, default: '' ) –

    info text

move_in_direction staticmethod

move_in_direction(
    handle_list: list[HandleProperties],
    name: str,
    placement_point: Point3D,
    angle: Angle,
    info_text: str = "",
)

create a handle for a move in the arrow direction

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • placement_point (Point3D) –

    placement move handle

  • angle (Angle) –

    handle angle

  • info_text (str, default: '' ) –

    info text

point staticmethod

point(
    handle_list: list[HandleProperties],
    name: str,
    handle_point: Point3D,
    index: int | None = None,
    info_text: str = "",
)

create a handle with a point to move

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • handle_point (Point3D) –

    handle point

  • index (int | None, default: None ) –

    point index

  • info_text (str, default: '' ) –

    info text

point_distance staticmethod

point_distance(
    handle_list: list[HandleProperties],
    name: str,
    handle_point: Point3D,
    ref_point: Point3D,
    has_input_field: bool = True,
    input_field_above: bool = True,
    show_handles: bool = True,
    center_point: Point3D | None = None,
)

create a handle with a point distance

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • handle_point (Point3D) –

    handle point

  • ref_point (Point3D) –

    reference point

  • has_input_field (bool, default: True ) –

    has input field state

  • input_field_above (bool, default: True ) –

    input field above the dimension line state

  • show_handles (bool, default: True ) –

    show the handles state

  • center_point (Point3D | None, default: None ) –

    center point for arc

point_list_2d staticmethod

point_list_2d(
    handle_list: list[HandleProperties],
    name: str,
    handle_points: list[Point2D],
    info_text: str = "",
)

create a handle with a point to move

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • handle_points (list[Point2D]) –

    handle points

  • info_text (str, default: '' ) –

    info text