class HandleModificationService

class HandleModificationService.HandleModificationService(coord_input: CoordinateInput,
                                                           build_ele_list
: List[BuildingElement]
,
                                                           control_props_list
: List[List[ControlProperties]]
,
                                                           asso_ref_ele
: Optional[BaseElementAdapter] = None
)

Implementation of the handle modification service

get_local_handle_point(input_pnt: Point3D) Optional[Point3D]

get the local handle point

Parameters

input_pnt – new handle point

Returns

handle point in the local element coordinate system, None if not exist

new_handle_point_input(mouse_msg: int,
                       pnt
: Point2D
,
                       msg_info
: Any
)

Input the new handle point

Parameters
  • mouse_msg – the mouse message.

  • pnt – the input point.

  • msg_info – additional message info.

Returns

new handle point

process_mouse_msg(mouse_msg: int,
                  pnt
: Point2D
,
                  msg_info
: Any
)

Handles the process mouse message event

Parameters
  • mouse_msg – the mouse message.

  • pnt – the input point.

  • msg_info – additional message info.

Returns

True/False for success.

reset_value()

reset the handle value

start(handle_list: List[HandleProperties],
      placement_mat
: Matrix3D
,
      input_doc
: DocumentAdapter
,
      view_world_proj
: ViewWorldProjection
,
      create_view_input_controls
: bool
)

start the handle modification

Parameters
  • handle_list – list with the handles

  • placement_mat – placement matrix of the PythonPart

  • create_view_input_controls – create the input controls in the view

start_new_handle_point_input(str_table_service: StringTableService)

start the new handle point input

stop()

stop the handle modification

__module__ = 'HandleModificationService'
property handle_prop: HandleProperties

get the handle property