[GRASS-SVN] r42642 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jun 23 08:13:31 EDT 2010
Author: martinl
Date: 2010-06-23 12:13:31 +0000 (Wed, 23 Jun 2010)
New Revision: 42642
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
Log:
wxGUI/nviz: fix ctypes issue (changed prototype)
(merge r42641 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py 2010-06-23 12:01:26 UTC (rev 42641)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/wxnviz.py 2010-06-23 12:13:31 UTC (rev 42642)
@@ -87,17 +87,14 @@
Nviz_change_exag(self.data, z_exag)
# determine height
- hdef = c_float()
- hmin = c_float()
- hmax = c_float()
+ hdef = c_double()
+ hmin = c_double()
+ hmax = c_double()
Nviz_get_exag_height(byref(hdef), byref(hmin), byref(hmax))
Debug.msg(1, "Nviz::SetViewDefault(): hdef=%f, hmin=%f, hmax=%f",
hdef.value, hmin.value, hmax.value)
- hdef.value = 805
- hmin.value = -2944.302979
- hmax.value = 4555.696777
return (z_exag, hdef.value, hmin.value, hmax.value)
def SetView(self, x, y, height, persp, twist):
More information about the grass-commit
mailing list