static RgbValues default_color_function (const double value,
const double min_value,
const double max_value);
+
+ /**
+ * This is an alternative color
+ * function producing a grey scale
+ * between black (lowest values)
+ * and white (highest values). You
+ * may use it by setting the
+ * #color_function# variable to the
+ * address of this function.
+ */
+ static RgbValues grey_scale_color_function (const double value,
+ const double min_value,
+ const double max_value);
/**
* Constructor.
+DataOutBase::EpsFlags::RgbValues
+DataOutBase::EpsFlags::grey_scale_color_function (const double x,
+ const double xmin,
+ const double xmax)
+{
+ DataOutBase::EpsFlags::RgbValues rgb_values;
+ rgb_values.red = rgb_values.blue = rgb_values.green
+ = (x-xmin)/(xmax-xmin);
+ return rgb_values;
+};
+
+
+
bool DataOutBase::EpsCell2d::operator < (const EpsCell2d &e) const
{
// note the "wrong" order in
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