[GRASS-SVN] r47793 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Aug 21 08:13:42 EDT 2011
Author: hamish
Date: 2011-08-21 05:13:42 -0700 (Sun, 21 Aug 2011)
New Revision: 47793
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
Perspective is valid 0-pi not 0-100%
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-21 11:18:36 UTC (rev 47792)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py 2011-08-21 12:13:42 UTC (rev 47793)
@@ -363,8 +363,8 @@
self.view['persp']['value'] += value
if self.view['persp']['value'] < 1:
self.view['persp']['value'] = 1
- elif self.view['persp']['value'] > 100:
- self.view['persp']['value'] = 100
+ elif self.view['persp']['value'] > 180:
+ self.view['persp']['value'] = 180
if prev_value != self.view['persp']['value']:
if hasattr(self.lmgr, "nviz"):
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-08-21 11:18:36 UTC (rev 47792)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-08-21 12:13:42 UTC (rev 47793)
@@ -297,8 +297,9 @@
# perspective
# set initial defaults here (or perhaps in a default values file), not in user settings
+ #todo: consider setting an absolute max at 360 instead of undefined. (leave the default max value at pi)
self._createControl(panel, data = self.win['view'], name = 'persp',
- range = (1,100),
+ range = (1,180),
bind = (self.OnViewChange, self.OnViewChanged, self.OnViewChangedText))
gridSizer.Add(item = wx.StaticText(panel, id = wx.ID_ANY, label = _("Perspective:")),
More information about the grass-commit
mailing list