qubx :: toolspace :: OverlayRgnTool :: Class OverlayRgnTool
[hide private]
[frames] | no frames]

Class OverlayRgnTool

source code

object --+    
         |    
      Tool --+
             |
            OverlayRgnTool
Known Subclasses:

Base class for a Tool which defines RotRect regions of interest.

Instance Methods [hide private]
 
__init__(self, x, y, prev_tool)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
onRoll(self, x, y, e) source code
 
onKeyPress(self, e) source code
 
prev_rgn(self) source code
 
next_rgn(self) source code

Inherited from Tool: activate, deactivate, onActivate, onDblClick, onDeactivate, onDrag, onKeyRelease, onNeedPopup, onOverlay, onPress, onRelease, onScroll

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
  prev_tool
Tool to reinstate when this one is done
  rgn
RotRect currently under the mouse, or None; It redraws when rgn changes.
  rgns
list of RotRect
  start_x
mouse x coordinate where it was invoked
  start_y
mouse y coordinate where it was invoked

Inherited from Tool: cursor, layers, space

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, x, y, prev_tool)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

onRoll(self, x, y, e)

source code 
Overrides: Tool.onRoll

onKeyPress(self, e)

source code 
Overrides: Tool.onKeyPress