diff src/graphics.cc @ 7869:e6d5532f760e

style fixes
author John W. Eaton <jwe@octave.org>
date Thu, 05 Jun 2008 01:06:29 -0400
parents 1b85fcb94c6a
children ab9fc4e3cdca
line wrap: on
line diff
--- a/src/graphics.cc	Thu Jun 05 00:23:04 2008 -0400
+++ b/src/graphics.cc	Thu Jun 05 01:06:29 2008 -0400
@@ -172,8 +172,6 @@
   return m;
 }
 
-
-
 static void
 xset_gcbo (const graphics_handle& h)
 {
@@ -349,7 +347,8 @@
 	}
       else
 	return graphics_object ();
-    } while (true);
+    }
+ while (true);
 }
 
 static octave_value
@@ -591,8 +590,8 @@
 
   if (str.compare(0, len, "blue", 0, len) == 0)
     tmp_rgb[2] = 1;
-  else if (str.compare(0, len, "black", 0, len) == 0 || 
-	   str.compare(0, len, "k", 0, len) == 0)
+  else if (str.compare(0, len, "black", 0, len) == 0
+	   || str.compare(0, len, "k", 0, len) == 0)
     tmp_rgb[0] = tmp_rgb[1] = tmp_rgb[2] = 0;
   else if (str.compare(0, len, "red", 0, len) == 0)
     tmp_rgb[0] = 1;
@@ -604,8 +603,8 @@
     tmp_rgb[0] = tmp_rgb[2] = 1;
   else if (str.compare(0, len, "cyan", 0, len) == 0)
     tmp_rgb[1] = tmp_rgb[2] = 1;
-  else if (str.compare(0, len, "white", 0, len) == 0 ||
-	   str.compare(0, len, "w", 0, len) == 0)
+  else if (str.compare(0, len, "white", 0, len) == 0
+	   || str.compare(0, len, "w", 0, len) == 0)
     tmp_rgb[0] = tmp_rgb[1] = tmp_rgb[2] = 1;
   else	
     retval = false;
@@ -793,11 +792,11 @@
         current_val = gh;
       else
         error ("set: invalid graphics handle (= %g) for property \"%s\"",
-            dv, get_name ().c_str ());
+	       dv, get_name ().c_str ());
     }
   else
     error ("set: invalid graphics handle for property \"%s\"",
-        get_name ().c_str ());
+	   get_name ().c_str ());
 }
 
 bool
@@ -933,8 +932,7 @@
 
 	  if (! error_state)
 	    {
-	      if (args.length () > 0
-		  && ! args(0).is_empty ())
+	      if (args.length () > 0 && ! args(0).is_empty ())
 		retval.set (args(0));
 	      else
 		retval.set (rv.default_value ());
@@ -2771,11 +2769,15 @@
 
 ColumnVector
 graphics_xform::xform_vector (double x, double y, double z)
-{ return ::xform_vector (x, y, z); }
+{
+  return ::xform_vector (x, y, z);
+}
 
 Matrix
 graphics_xform::xform_eye (void)
-{ return ::xform_matrix (); }
+{
+  return ::xform_matrix ();
+}
 
 ColumnVector
 graphics_xform::transform (double x, double y, double z,
@@ -2872,7 +2874,8 @@
 // magform(x) Returns (a, b), where x = a * 10^b, a >= 1., and b is
 // integral.
 
-static void magform (double x, double& a, int& b)
+static void
+magform (double x, double& a, int& b)
 {
   if (x == 0)
     {
@@ -2937,7 +2940,8 @@
 // value.
 
 Matrix
-axes::properties::get_axis_limits (double xmin, double xmax, double min_pos, bool logscale)
+axes::properties::get_axis_limits (double xmin, double xmax,
+				   double min_pos, bool logscale)
 {
   Matrix retval;
 
@@ -2997,7 +3001,9 @@
 }
 
 void 
-axes::properties::calc_ticks_and_lims (array_property& lims, array_property& ticks, bool limmode_is_auto, bool is_logscale)
+axes::properties::calc_ticks_and_lims (array_property& lims,
+				       array_property& ticks,
+				       bool limmode_is_auto, bool is_logscale)
 {
 
   // FIXME -- add log ticks and lims
@@ -3055,8 +3061,6 @@
       if (is_logscale)
 	tmp_ticks (i) = std::pow (10., tmp_ticks (i));
     }
-	
-  
 
   ticks = tmp_ticks;
 }
@@ -4369,8 +4373,8 @@
 }
 
 DEFUN (addproperty, args, ,
-   "-*- texinfo -*-\n\
-@deftypefn {Built-in Function} {} addproperty (@var{name}, @var{h}, @var{type}, [@var{arg}, ...])\n\
+  "-*- texinfo -*-\n\
+@deftypefn {Built-in Function} {} addproperty (@var{name}, @var{h}, @var{type}, [@var{arg}, @dots{}])\n\
 Create a new property named @var{name} in graphics object @var{h}.\n\
 @var{type} determines the type of the property to create. @var{args}\n\
 usually contains the default value of the property, but additional\n\
@@ -4415,7 +4419,7 @@
 @var{type} may also be the concatenation of a core object type and\n\
 a valid property name for that object type. The property created\n\
 then has the same characteristics as the referenced property (type,\n\
-possible values, hidden state...). This allows to clone an existing\n\
+possible values, hidden state@dots{}). This allows to clone an existing\n\
 property into the graphics object @var{h}.\n\
 \n\
 Examples:\n\