Use only the current step to for 3d well log curve range when follow current time step is off

This commit is contained in:
Gaute Lindkvist 2018-07-04 13:44:35 +02:00
parent 8c07e7d581
commit 2db495662f

View File

@ -51,6 +51,8 @@
#include <QFileInfo>
#include <set>
//==================================================================================================
///
///
@ -232,11 +234,25 @@ std::pair<double, double> Rim3dWellLogExtractionCurve::findCurveValueRange()
double foundMinValue = std::numeric_limits<float>::infinity();
double foundMaxValue = -std::numeric_limits<float>::infinity();
std::set<int> timeStepsToCheck;
if (followAnimationTimeStep())
{
// Check all time steps to avoid range changing during animation.
for (int i = 0; i < m_case->timeStepStrings().size(); ++i)
{
timeStepsToCheck.insert(i);
}
}
else
{
timeStepsToCheck.insert(m_timeStep());
}
for (int timeStep : timeStepsToCheck)
{
std::vector<double> values;
std::vector<double> measuredDepths;
this->curveValuesAndMdsAtTimeStep(&values, &measuredDepths, int(i));
this->curveValuesAndMdsAtTimeStep(&values, &measuredDepths, timeStep);
for (double value : values)
{