[GRASS-SVN] r46930 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 1 16:25:32 EDT 2011


Author: annakrat
Date: 2011-07-01 13:25:32 -0700 (Fri, 01 Jul 2011)
New Revision: 46930

Modified:
   grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
Log:
wxNviz: wrap command for nviz_cmd

Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2011-07-01 19:27:47 UTC (rev 46929)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2011-07-01 20:25:32 UTC (rev 46930)
@@ -1395,7 +1395,7 @@
                 cmd += cmdColorMap.strip(', ') + ' '
             if cmdColorVal.split("=")[1]:
                 cmd += cmdColorVal.strip(', ') + ' '
-                
+            cmd += "\\\n"
         #
         # vlines
         #
@@ -1438,11 +1438,11 @@
                 cmd += "vpoint_marker=" + cmdPMarker.strip(',') + ' '
                 cmd += "vpoint_position=" + cmdPPos.strip(',') + ' '
                 cmd += "vpoint_layer=" + cmdPLayer.strip(',') + ' '
+            cmd += "\\\n"
         #
         # cutting planes
         #
         cplane = self.lmgr.nviz.FindWindowById(self.lmgr.nviz.win['cplane']['planes']).GetStringSelection()
-        print cplane
         try:
             planeIndex = int(cplane.split()[1])
         except IndexError:
@@ -1456,7 +1456,7 @@
                                            self.cplanes[planeIndex]['position']['y'],
                                            self.cplanes[planeIndex]['position']['z'])
             cmd += "cplane_shading=%s " % shading[self.cplanes[planeIndex]['shading']]
-                                                    
+            cmd += "\\\n"                                        
         # 
         # viewpoint
         #
@@ -1472,6 +1472,7 @@
         subcmd  = "bgcolor=%d:%d:%d " % (self.view['background']['color'])
         if self.view['background']['color'] != (255, 255, 255):
             cmd += subcmd
+        cmd += "\\\n"
         # light
         subcmd  = "light_position=%.2f,%.2f,%.2f " % (self.light['position']['x'],
                                                       self.light['position']['y'],
@@ -1480,7 +1481,7 @@
         subcmd += "light_ambient=%d " % (self.light['ambient'])
         subcmd += "light_color=%d:%d:%d " % (self.light['color'])
         cmd += subcmd
-        
+        cmd += "\\\n"
         # fringe
         toolWindow = self.lmgr.nviz
         direction = ''
@@ -1493,7 +1494,7 @@
             subcmd += "fringe_color=%d:%d:%d " % (color[0], color[1], color[2])
             subcmd += "fringe_elevation=%d " % (toolWindow.FindWindowById(toolWindow.win['fringe']['elev']).GetValue())
             cmd += subcmd
-            
+            cmd += "\\\n"
         # output
         subcmd = 'output=nviz_output '
         subcmd += 'format=ppm '



More information about the grass-commit mailing list