#3596 Add new aggregation for Oil / Water / HC columns and improve speed and reliability.

* Avoid calculating results many times for each change.
* Avoid drawing spurious contour lines when results are undefined.
* Add aggregation type to legend header (#3594).
This commit is contained in:
Gaute Lindkvist
2018-11-05 14:31:07 +01:00
parent 8f275757dc
commit 1422403b71
4 changed files with 199 additions and 40 deletions

View File

@@ -211,7 +211,7 @@ void caf::ContourLines::create(const std::vector<double>& dataXY, const std::vec
//--------------------------------------------------------------------------------------------------
double caf::ContourLines::contourRange(const std::vector<double>& contourLevels)
{
return std::max(1.0, contourLevels.back() - contourLevels.front());
return std::max(1.0e-6, contourLevels.back() - contourLevels.front());
}
//--------------------------------------------------------------------------------------------------