(#526) Fixed problem with finding intervals for extraction curves

Infinite values from well log curve extraction should never appear for
points that are filtered for plotting. Did some refactoring/code
cleanup.
This commit is contained in:
Pål Hagen
2015-09-24 13:36:38 +02:00
parent d7a1094893
commit ff073f50fa
2 changed files with 68 additions and 43 deletions

View File

@@ -68,6 +68,8 @@ protected:
caf::PdmField<bool> m_addTimestepToCurveName;
private:
static void validValuesIntervals(const std::vector<double>& values, std::vector< std::pair<size_t, size_t> >& intervals);
static void validDepthValuesIntervals(const std::vector<double>& depthValues, size_t startIdx, size_t stopIdx, std::vector< std::pair<size_t, size_t> >& intervals);
static void validCurvePointIntervals(const std::vector<double>& depthValues, const std::vector<double>& values, std::vector< std::pair<size_t, size_t> >& intervals);
static void addValuesFromIntervals(const std::vector<double>& values, std::vector< std::pair<size_t, size_t> >& intervals, std::vector<double>* filteredValues);
static void filteredIntervals(const std::vector< std::pair<size_t, size_t> >& intervals, std::vector< std::pair<size_t, size_t> >* fltrIntervals);