STY: Clean up unused blitting-related code

This commit is contained in:
Tony S Yu
2012-12-12 13:34:53 -05:00
parent 866e7d7d60
commit 16a720770a
2 changed files with 0 additions and 13 deletions
-12
View File
@@ -74,7 +74,6 @@ class Plugin(QDialog):
"""
name = 'Plugin'
image_viewer = RequiredAttr("%s is not attached to ImageViewer" % name)
draws_on_image = False
def __init__(self, image_filter=None, height=0, width=400, useblit=True):
init_qtapp()
@@ -116,8 +115,6 @@ class Plugin(QDialog):
#TODO: Always passing image as first argument may be bad assumption.
self.arguments.append(self.image_viewer.original_image)
if self.draws_on_image:
self.connect_image_event('draw_event', self.on_draw)
# Call filter so that filtered image matches widget values
self.filter_image()
@@ -148,15 +145,6 @@ class Plugin(QDialog):
self.add_widget(widget)
return self
def on_draw(self, event):
"""Save image background when blitting.
The saved image is used to "clear" the figure before redrawing artists.
"""
if self.useblit:
bbox = self.image_viewer.ax.bbox
self.img_background = self.image_viewer.canvas.copy_from_bbox(bbox)
def filter_image(self, *widget_arg):
"""Call `image_filter` with widget args and kwargs
-1
View File
@@ -33,7 +33,6 @@ class LineProfile(PlotPlugin):
'dtype' : fixed scale based on min/max intensity of image dtype.
"""
name = 'Line Profile'
draws_on_image = True
def __init__(self, linewidth=1, maxdist=5, epsilon='deprecated',
limits='image', **kwargs):