From: Tero K. <te...@us...> - 2005-08-16 14:15:05
|
Update of /cvsroot/openexvis/openexvis In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28646 Modified Files: ChangeLog openexvis.py Log Message: Don't draw all the pixmaps when animating, just those that should be shown at the moment. Index: openexvis.py =================================================================== RCS file: /cvsroot/openexvis/openexvis/openexvis.py,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- openexvis.py 16 Aug 2005 14:01:16 -0000 1.15 +++ openexvis.py 16 Aug 2005 14:14:57 -0000 1.16 @@ -161,6 +161,7 @@ def draw_step(self, lineno, viscommands): """Draw one visualization step.""" self.vis_steps = [] + self.vis_drawn = [] self.vis_pixmaps = {} # Mark the line we're visualizing on the code area. vis_code = self.mark_line(lineno) @@ -177,6 +178,7 @@ for elem in self.vis_steps: # Update the visualization area. self.animate_element(elem) + self.vis_drawn.append(elem) if self.do_steps: while self.do_steps and not self.step_fwd: # Loop until we are told to step forward or to start running @@ -327,7 +329,8 @@ # other elements on our way. pmw, pmh = pm[0].get_size() self.clear_visualization_area() - for name, data in self.vis_pixmaps.iteritems(): + for name in self.vis_drawn: + data = self.vis_pixmaps[name[0]] self.pixmap.draw_drawable(self.gc, data[0], 0, 0, \ data[1], data[2], -1, -1) # Draw the element. Index: ChangeLog =================================================================== RCS file: /cvsroot/openexvis/openexvis/ChangeLog,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ChangeLog 16 Aug 2005 14:01:16 -0000 1.12 +++ ChangeLog 16 Aug 2005 14:14:57 -0000 1.13 @@ -5,6 +5,7 @@ * Internal restructuring * Improve the animation a lot + * Draw elements in more intelligent order * Correct variable values shown when visualizing an evaluation * The screen is now cleaned up when a new file is loaded * The output area is cleared when beginning a new visualization |