diff src/graphics.cc @ 6724:388747e3d96b

[project @ 2007-06-14 17:04:52 by jwe]
author jwe
date Thu, 14 Jun 2007 17:04:53 +0000
parents 0ee6bda23b87
children 3d1e0a056e6e
line wrap: on
line diff
--- a/src/graphics.cc	Thu Jun 14 10:16:35 2007 +0000
+++ b/src/graphics.cc	Thu Jun 14 17:04:53 2007 +0000
@@ -1706,6 +1706,7 @@
     string (""),
     units ("data"),
     position (Matrix (1, 3, 0.0)),
+    rotation (0),
     horizontalalignment ("left")
 { }
 
@@ -1729,6 +1730,8 @@
     units = val;
   else if (name.compare ("position"))
     position = val;
+  else if (name.compare ("rotation"))
+    rotation = val;
   else if (name.compare ("horizontalalignment"))
     horizontalalignment = val;
   else
@@ -1753,6 +1756,7 @@
   m.assign ("string", string);
   m.assign ("units", units);
   m.assign ("position", position);
+  m.assign ("rotation", rotation);
   m.assign ("horizontalalignment", horizontalalignment);
 
   return m;
@@ -1777,6 +1781,8 @@
     retval = units;
   else if (name.compare ("position"))
     retval = position;
+  else if (name.compare ("rotation"))
+    retval = rotation;
   else if (name.compare ("horizontalalignment"))
     retval = horizontalalignment;
   else
@@ -1793,6 +1799,7 @@
   m["string"] = "";
   m["units"] = "data";
   m["position"] = Matrix (1, 3, 0.0);
+  m["rotation"] = 0;
   m["horizontalalignment"] = "left";
 
   return m;