Interactivity Help

Contents

Mouse Interaction

Once a display has entered into a event loop by a call to the pickloop() method, it will respond to mouse events, allowing interactivity with the construction:

  • Left click:

    • if a pickable point is hit, the point hit will identify itself by enlarging and displaying as in Green
    • if no pickable point is hit, all pickable points will respond by flashing larger and displaying in Blue
  • Left drag:

    • a picked point is moved in reaction to a drag with the left mouse button down.
  • Right drag:

    • the scene will rotate around the camera center in reaction to movement with the right mouse button down
  • Middle drag, 2 button drag:

    • the scene will zoom closer or further in reaction to movement with the middle button, or the left and right buttons simultaneoulsy down.

Panel Menu

By default, a creation of a display also creates a separate panel that contains option box and menu options. The creation of the panel can be suppressed by including the expression "panel = False" as a keyword parameter when initializing the display: