diff src/graphics.h.in @ 7446:4bfbec4b0e24

[project @ 2008-02-04 21:17:18 by jwe]
author jwe
date Mon, 04 Feb 2008 21:17:18 +0000
parents af92b34f3a3a
children 25018e35b4cb
line wrap: on
line diff
--- a/src/graphics.h.in	Mon Feb 04 07:53:07 2008 +0000
+++ b/src/graphics.h.in	Mon Feb 04 21:17:18 2008 +0000
@@ -2327,9 +2327,9 @@
       array_property dataaspectratio m , Matrix (1, 3, 1.0)
       radio_property dataaspectratiomode , "{auto}|manual"
       radio_property layer , "{bottom}|top"
-      array_property xlim m , default_lim ()
-      array_property ylim m , default_lim ()
-      array_property zlim m , default_lim ()
+      array_property xlim mu , default_lim ()
+      array_property ylim mu , default_lim ()
+      array_property zlim mu , default_lim ()
       array_property clim m , default_lim ()
       array_property alim m , default_lim ()
       radio_property xlimmode al , "{auto}|manual"
@@ -2463,6 +2463,31 @@
     void update_xdir (void) { update_camera (); }
     void update_ydir (void) { update_camera (); }
     void update_zdir (void) { update_camera (); }
+
+    void magform (double x, double& a, int &b);
+
+    void calc_ticks (const array_property& lims, array_property& ticks);
+
+  public:
+    void update_xlim (void)
+    {
+      if (xtickmode.is ("auto"))
+	calc_ticks (xlim, xtick);
+    }
+
+    void update_ylim (void)
+    {
+      if (ytickmode.is ("auto"))
+	calc_ticks (ylim, ytick);
+    }
+
+    void update_zlim (void)
+    {
+      if (ztickmode.is ("auto"))
+	calc_ticks (zlim, ztick);
+    }
+    
+    
   };
 
 private: