[GRASS-SVN] r32895 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Aug 19 11:15:47 EDT 2008
Author: cmbarton
Date: 2008-08-19 11:15:47 -0400 (Tue, 19 Aug 2008)
New Revision: 32895
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
Log:
Tuning auto-rendering for smoother panning and resizing.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-19 15:12:36 UTC (rev 32894)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxgui_utils.py 2008-08-19 15:15:47 UTC (rev 32895)
@@ -91,7 +91,8 @@
self.notebook = kargs['notebook'] # GIS Manager notebook for layer tree
self.treepg = parent # notebook page holding layer tree
self.auimgr = kargs['auimgr'] # aui manager
- self.rerender = False # layer change requires a reordering and rerendering (if auto render)
+ self.rerender = False # layer change requires a rerendering if auto render
+ self.reorder = False # layer change requires a reordering
# init associated map display
self.mapdisplay = mapdisp.MapFrame(self,
@@ -199,7 +200,6 @@
if self.rerender:
if self.mapdisplay.autoRender.GetValue():
self.mapdisplay.MapWindow.UpdateMap(render=True)
- self.rerender = False
event.Skip()
@@ -495,6 +495,7 @@
# redraw map if auto-rendering is enabled
self.rerender = True
+ self.reorder = True
#if self.mapdisplay.autoRender.GetValue():
# print "*** Opacity OnRender *****"
# self.mapdisplay.OnRender(None)
@@ -861,6 +862,7 @@
# redraw map if auto-rendering is enabled
self.rerender = True
+ self.reorder = True
#if self.mapdisplay.autoRender.GetValue():
# print "*** Delete OnRender *****"
# self.mapdisplay.OnRender(None)
@@ -938,6 +940,7 @@
# redraw map if auto-rendering is enabled
self.rerender = True
+ self.reorder = True
#if self.mapdisplay.autoRender.GetValue():
# print "*** Checked OnRender *****"
# self.mapdisplay.OnRender(None)
@@ -1073,6 +1076,7 @@
# redraw map if auto-rendering is enabled
self.rerender = True
+ self.reorder = True
#if self.mapdisplay.autoRender.GetValue():
# print "*** Drop OnRender *****"
# self.mapdisplay.OnRender(None)
@@ -1226,6 +1230,7 @@
"""Add commands from data associated with
any valid layers (checked or not) to layer list in order to
match layers in layer tree."""
+ print "in reorder*****************"
# make a list of visible layers
treelayers = []
@@ -1253,6 +1258,7 @@
# reorder map layers
treelayers.reverse()
self.Map.ReorderLayers(treelayers)
+ self.reorder = False
def ChangeLayer(self, item):
"""Change layer"""
@@ -1288,6 +1294,7 @@
# redraw map if auto-rendering is enabled
self.rerender = True
+ self.reorder = True
#if self.mapdisplay.autoRender.GetValue():
# print "*** Change OnRender *****"
# self.mapdisplay.OnRender(None)
More information about the grass-commit
mailing list