Skip to content

CurveHandleCreator

implementation of the curve handle creator

CurveHandleCreator

Canonical path: Utils.HandleCreator.CurveHandleCreator.CurveHandleCreator

implementation of the curve handle creator

line staticmethod

line(
    handle_list: list[HandleProperties],
    name: str,
    line: Line3D | Line2D,
    info_text: str = "",
    show_input_field_always: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create x/y/z point distance handles for a line defined by two points

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • name (str) –

    handle parameter name

  • line (Line3D | Line2D) –

    line

  • info_text (str, default: '' ) –

    info text

  • show_input_field_always (bool, default: False ) –

    show the input field always state

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

    owner element of the handle (in element modification mode)

poly_curve staticmethod

poly_curve(
    handle_list: list[HandleProperties],
    poly_curve: POLY_CURVES,
    add_split_points: bool,
    name: str = "",
    info_text: str = "",
    info_text_template: Template = Template(""),
    index_offset: int = 0,
    delete_point: bool = False,
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create point move handles for a poly points curve

Parameters:

  • handle_list (list[HandleProperties]) –

    handle list

  • poly_curve (POLY_CURVES) –

    poly points curve

  • add_split_points (bool) –

    add split points

  • name (str, default: '' ) –

    handle parameter name

  • 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)

vector staticmethod

vector(
    handle_list: list[HandleProperties],
    start_point: Point2D | Point3D,
    vector: Vector2D | Vector3D,
    name: str,
    info_text: str = "",
    owner_element: BaseElementAdapter = BaseElementAdapter(),
)

create point move handles for a vector

Parameters:

Placeholder