Table of Contents

Class: RubberBandZoomer ..\subs.py

Class to define a Rubber Band Box zoom capability for a display. Once invoked, a drag with right mouse button creates a RubberBandBox. When released, the image is moved and zoomed to fill the window.

Methods   
__init__
zoomit
  __init__ 
__init__ (
        self,
        display,
        requireKey,
        callback=None,
        )

display is the display object. requireKey = 0 (no key), = 1 (CTRL), = 2 (SHIFT)

  zoomit 
zoomit ( self,  samples )

To force a zoom with an array of samples, call this... samples[2][] contains values for the corner points, in the proper scalar type. samples[0][] is x,y of upperleft. samples[1][] is x,y is lower right.


Table of Contents

This document was automatically generated on Wed Feb 26 13:00:02 2003 by HappyDoc version 2.1