[GRASS-SVN] r31670 - grass/trunk/lib/ogsf

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 10 09:43:45 EDT 2008


Author: martinl
Date: 2008-06-10 09:43:45 -0400 (Tue, 10 Jun 2008)
New Revision: 31670

Modified:
   grass/trunk/lib/ogsf/GS2.c
   grass/trunk/lib/ogsf/gsd_views.c
Log:
nviz_cmd: color_map/value option added
template for manual page created 
[merge from devbr6, 31669]


Modified: grass/trunk/lib/ogsf/GS2.c
===================================================================
--- grass/trunk/lib/ogsf/GS2.c	2008-06-10 13:42:09 UTC (rev 31669)
+++ grass/trunk/lib/ogsf/GS2.c	2008-06-10 13:43:45 UTC (rev 31670)
@@ -2611,9 +2611,9 @@
 }
 
 /*!
-  \brief Move to position
+  \brief Move viewpoint 
 
-  \param pt point model coordinates
+  \param pt 'from' model coordinates
 */
 void GS_moveto(float *pt)
 {
@@ -2718,7 +2718,7 @@
 }
 
 /*!
-  \brief Get 'from' position
+  \brief Get viewpoint 'from' position
 
   \param[out] fr from model coordinates
 */
@@ -2732,7 +2732,7 @@
 }
 
 /*!
-  \brief Get 'from' real coordinates
+  \brief Get viewpoint 'from' real coordinates
 
   \param[out] fr 'from' real coordinates
 */
@@ -2867,7 +2867,7 @@
 }
 
 /*!
-  \brief Set twist value
+  \brief Set viewpoint twist value
 
   10ths of degrees off twelve o'clock
   
@@ -3165,7 +3165,7 @@
 }
 
 /*!
-  \brief Get scale
+  \brief Get axis scale
 
   \param sx,sy,sz x/y/z scale values
   \param doexag use vertical exaggeration
@@ -3269,7 +3269,7 @@
 ************************************************************************/
 
 /*!
-  \brief Init view
+  \brief Init viewpoint
 
   \todo allow to set center?
 */
@@ -3380,8 +3380,6 @@
     int left, right, bottom, top;
     GLint tmp[4];
 
-    G_debug(3, "GS_get_aspect");
-
     /* OGLXXX
      * get GL_VIEWPORT:
      * You can probably do better than this.
@@ -3392,6 +3390,9 @@
     bottom = tmp[1];
     top = tmp[1] + tmp[3] - 1;
 
+    G_debug(3, "GS_get_aspect(): left=%d, right=%d, top=%d, bottom=%d",
+	    left, right, top, bottom);
+
     return ((double) (right - left) / (top - bottom));
 }
 

Modified: grass/trunk/lib/ogsf/gsd_views.c
===================================================================
--- grass/trunk/lib/ogsf/gsd_views.c	2008-06-10 13:42:09 UTC (rev 31669)
+++ grass/trunk/lib/ogsf/gsd_views.c	2008-06-10 13:43:45 UTC (rev 31670)
@@ -159,10 +159,10 @@
 }
 
 /*!
-  \brief ADD
+  \brief Get z-up vector (z-direction)
 
   \param gv view (geoview)
-  \param up
+  \param up up vector
 */
 void gsd_get_zup(geoview * gv, double *up)
 {
@@ -316,7 +316,7 @@
 /*!
   \brief Convert model to real coordinates
 
-  \param point[in,out] 3d point (Point3)
+  \param point[in,out] 3d point (x,y,z)
 */
 void gsd_model2real(Point3 point)
 {



More information about the grass-commit mailing list