vispy.visuals.transforms.interactive module#

class vispy.visuals.transforms.interactive.PanZoomTransform(canvas=None, aspect=None, **kwargs)#

Bases: STTransform

Pan-zoom transform

Parameters:
canvasinstance of Canvas | None

The canvas to attch to.

aspectfloat | None

The aspect ratio to apply.

**kwargsdict

Keyword arguments to pass to the underlying STTransform.

attach(canvas)#

Attach this tranform to a canvas

Parameters:
canvasinstance of Canvas

The canvas.

property canvas_tr#
on_mouse_move(event)#

Mouse move handler

Parameters:
eventinstance of Event

The event.

on_mouse_wheel(event)#

Mouse wheel handler

Parameters:
eventinstance of Event

The event.

on_resize(event)#

Resize handler

Parameters:
eventinstance of Event

The event.