[GRASS-SVN] r32015 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 6 06:27:38 EDT 2008
Author: martinl
Date: 2008-07-06 06:27:38 -0400 (Sun, 06 Jul 2008)
New Revision: 32015
Added:
grass/trunk/gui/wxpython/nviz/vector.cpp
Log:
nviz2/wxGUI: missing source added
Added: grass/trunk/gui/wxpython/nviz/vector.cpp
===================================================================
--- grass/trunk/gui/wxpython/nviz/vector.cpp (rev 0)
+++ grass/trunk/gui/wxpython/nviz/vector.cpp 2008-07-06 10:27:38 UTC (rev 32015)
@@ -0,0 +1,44 @@
+/**
+ \file vector.cpp
+
+ \brief Experimental C++ wxWidgets Nviz prototype -- vector mode and attributes
+
+ Used by wxGUI Nviz extension.
+
+ Copyright: (C) by the GRASS Development Team
+
+ This program is free software under the GNU General Public
+ License (>=v2). Read the file COPYING that comes with GRASS
+ for details.
+
+ \author Martin Landa <landa.martin gmail.com> (Google SoC 2008)
+
+ \date 2008
+*/
+
+#include "nviz.h"
+
+/**
+ \brief Set mode of vector overlay
+
+ \param id vector id
+ \param color_str color string
+ \param width line width
+ \param flat
+*/
+int Nviz::SetVectorLineMode(int id, const char *color_str,
+ int width, int flat)
+{
+ int color;
+
+ if(!GV_vect_exists(id))
+ return 0;
+
+ color = Nviz_color_from_str(color_str);
+
+ /* use memory by default */
+ if (GV_set_vectmode(id, 1, color, width, flat) < 0)
+ return 0;
+
+ return 1;
+}
Property changes on: grass/trunk/gui/wxpython/nviz/vector.cpp
___________________________________________________________________
Name: svn:mime-type
+ text/x-c++src
Name: svn:keywords
+ Author Date Id
Name: svn:eol-style
+ native
More information about the grass-commit
mailing list