예제 #1
0
 def remove(self):
     super(ImageLayerArtist, self).remove()
     if self.uuid in self.composite:
         self.composite.deallocate(self.uuid)
         self.composite_image.invalidate_cache()
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
예제 #2
0
 def remove(self):
     super(ImageLayerArtist, self).remove()
     if self.uuid in self.composite:
         self.composite.deallocate(self.uuid)
         self.composite_image.invalidate_cache()
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
예제 #3
0
 def remove(self):
     """
     Remove the layer artist for good
     """
     self._multivol.deallocate(self.id)
     ARRAY_CACHE.pop(self.id, None)
     PIXEL_CACHE.pop(self.id, None)
예제 #4
0
 def remove(self):
     super(BqplotImageSubsetLayerArtist, self).remove()
     self.image_artist.invalidate_cache()
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
     self.subset_array = None
     marks = self.view.figure.marks[:]
     marks.remove(self.image_artist)
     self.image_artist = None
     self.view.figure.marks = marks
예제 #5
0
 def update(self, *event):
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
     self._update_image(force=True)
     self.redraw()
예제 #6
0
 def remove(self):
     super(ImageSubsetLayerArtist, self).remove()
     self.image_artist.invalidate_cache()
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
예제 #7
0
 def update(self, *event):
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)
     self._update_image(force=True)
     self.redraw()
예제 #8
0
 def remove(self):
     super(ImageSubsetLayerArtist, self).remove()
     self.image_artist.invalidate_cache()
     ARRAY_CACHE.pop(self.state.uuid, None)
     PIXEL_CACHE.pop(self.state.uuid, None)