mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Introduce RimGridPlotWindow and RiuQwtPlotWidget
This commit is contained in:
@@ -356,6 +356,42 @@ bool RigWellLogCurveData::calculateMDRange( double* minimumDepth, double* maximu
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RigWellLogCurveData::calculateTVDRange( double* minTVD, double* maxTVD ) const
|
||||
{
|
||||
CVF_ASSERT( minTVD && maxTVD );
|
||||
|
||||
double minValue = HUGE_VAL;
|
||||
double maxValue = -HUGE_VAL;
|
||||
|
||||
for ( size_t vIdx = 0; vIdx < m_tvDepths.size(); vIdx++ )
|
||||
{
|
||||
double value = m_tvDepths[vIdx];
|
||||
|
||||
if ( value < minValue )
|
||||
{
|
||||
minValue = value;
|
||||
}
|
||||
|
||||
if ( value > maxValue )
|
||||
{
|
||||
maxValue = value;
|
||||
}
|
||||
}
|
||||
|
||||
if ( maxValue >= minValue )
|
||||
{
|
||||
*minTVD = minValue;
|
||||
*maxTVD = maxValue;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -51,6 +51,7 @@ public:
|
||||
const std::vector<double>& measuredDepths() const;
|
||||
const std::vector<double>& tvDepths() const;
|
||||
bool calculateMDRange( double* minMD, double* maxMD ) const;
|
||||
bool calculateTVDRange( double* minTVD, double* maxTVD ) const;
|
||||
|
||||
RiaDefines::DepthUnitType depthUnit() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user