]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix forgotten reverse grey scale color function in declaration of parameters.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2001 14:42:06 +0000 (14:42 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 10 Oct 2001 14:42:06 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@5137 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.all_dimensions.cc
deal.II/doc/news/2001/c-3-2.html

index 4604412c0b1fb3c9c8a6949e533b50423b6601af..ab989cc4c9876ef8ff3d526e198dc25f869df75e 100644 (file)
@@ -283,7 +283,7 @@ void DataOutBase::EpsFlags::declare_parameters (ParameterHandler &prm)
   prm.declare_entry ("Color shading of interior of cells", "true",
                     Patterns::Bool());
   prm.declare_entry ("Color function", "default",
-                    Patterns::Selection ("default|grey scale"));
+                    Patterns::Selection ("default|grey scale|reverse grey scale"));
 };
 
 
@@ -306,8 +306,16 @@ void DataOutBase::EpsFlags::parse_parameters (ParameterHandler &prm)
   shade_cells   = prm.get_bool ("Color shading of interior of cells");
   if (prm.get("Color function") == "default")
     color_function = &default_color_function;
-  else
+  else if (prm.get("Color function") == "grey scale")
     color_function = &grey_scale_color_function;
+  else if (prm.get("Color function") == "reverse grey scale")
+    color_function = &reverse_grey_scale_color_function;
+  else
+                                    // we shouldn't get here, since
+                                    // the parameter object should
+                                    // already have checked that the
+                                    // given value is valid
+    Assert (false, ExcInternalError());
 };
 
 
index 734b47291ee04eeacc0f673ca7fd962942f0b817..97b7e9d10597f3b713b2bf945c1220b88880029b 100644 (file)
@@ -35,7 +35,15 @@ documentation, etc</a>.
 <h3>base</h3>
 
 <ol>
-
+  <li> <p>
+       Fixed: The <code class="class">DataOutBase::EpsFlags</code>
+       class forgot to declare the reverse grey scale function as one
+       possible input for the color function for the
+       <code class="class">ParameterHandler</code> class. This is now
+       possible.
+       <br>
+       (WB 2001/10/10)
+       </p>
 </ol>
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.