105. plugins.interaction_tools

class plugins.interaction_tools.Manipulator(actor, canvas=None, app=None, selection_width=20, select_closest=True, extra=None, **kargs)[source]

Manipulate actor

Parameters:
  • actor – drawable actor

  • canvas – canvas where actor is drawn

  • app – pyformex app

  • selection_width (int) – The selection width in pixels

  • select_closest (bool) – If True, select the closest item

  • kwargs – Options for highlighting

start()[source]

Start manipulation

Returns:

left_mouse_button(x, y, action)[source]

Actions upon left mouse click

Parameters:
  • x

  • y

  • action

Returns:

stop()[source]

Stop manipulation by right click

Returns:

select(x, y)[source]

Select a node, edge or element

Parameters:
  • x

  • y

Returns:

select_node(xyz)[source]

Select a node

Parameters:

xyz

Returns:

select_edge(xyz)[source]

Select an edge

Parameters:

xyz

Returns:

select_element(xyz)[source]

Select an element

Parameters:

xyz

Returns:

move_actor_nodes(x, y, previous=None)[source]

Drag nodes of the actor

Parameters:
  • x

  • y

  • previous

Returns: