diff src/graphics.cc @ 6765:e6b528a3a2a9

[project @ 2007-06-28 15:25:43 by jwe]
author jwe
date Thu, 28 Jun 2007 15:25:44 +0000
parents 813172f035de
children f1157da78825
line wrap: on
line diff
--- a/src/graphics.cc	Wed Jun 27 19:02:59 2007 +0000
+++ b/src/graphics.cc	Thu Jun 28 15:25:44 2007 +0000
@@ -921,6 +921,7 @@
     ydir ("normal"),
     zdir ("normal"),
     view (),
+    visible ("on"),
     nextplot ("replace"),
     outerposition ()
 {
@@ -1108,6 +1109,8 @@
     zdir = val;
   else if (name.compare ("view"))
     view = val;
+  else if (name.compare ("visible"))
+    visible = val;
   else if (name.compare ("nextplot"))
     nextplot = val;
   else if (name.compare ("outerposition"))
@@ -1176,6 +1179,7 @@
   tview(1) = 90;
   view = tview;
 
+  visible = "on";
   nextplot = "replace";
 
   // FIXME -- this is not quite right; we should preserve
@@ -1259,6 +1263,7 @@
   m.assign ("ydir", ydir);
   m.assign ("zdir", zdir);
   m.assign ("view", view);
+  m.assign ("visible", visible);
   m.assign ("nextplot", nextplot);
   m.assign ("outerposition", outerposition);
 
@@ -1382,6 +1387,8 @@
     retval = zdir;
   else if (name.compare ("view"))
     retval = view;
+  else if (name.compare ("visible"))
+    retval = visible;
   else if (name.compare ("nextplot"))
     retval = nextplot;
   else if (name.compare ("outerposition"))
@@ -1481,6 +1488,7 @@
 
   m["view"] = tview;
 
+  m["visible"] = "on";
   m["nextplot"] = "replace";
 
   Matrix touterposition (1, 4, 0.0);