mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3467 New interface class for completions +use RiaDefines::CompletionType
This commit is contained in:
@@ -191,34 +191,6 @@ double RimFishbonesMultipleSubs::rotationAngle(size_t index) const
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFishbonesMultipleSubs::startOfSubMD() const
|
||||
{
|
||||
double measuredDepth = 0.0;
|
||||
if (!m_locationOfSubs().empty())
|
||||
{
|
||||
measuredDepth = m_locationOfSubs().front();
|
||||
}
|
||||
|
||||
return measuredDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFishbonesMultipleSubs::endOfSubMD() const
|
||||
{
|
||||
double measuredDepth = 0.0;
|
||||
if (!m_locationOfSubs().empty())
|
||||
{
|
||||
measuredDepth = m_locationOfSubs().back();
|
||||
}
|
||||
|
||||
return measuredDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -428,6 +400,58 @@ void RimFishbonesMultipleSubs::setUnitSystemSpecificDefaults()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RiaDefines::CompletionType RimFishbonesMultipleSubs::type() const
|
||||
{
|
||||
return RiaDefines::FISHBONES;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFishbonesMultipleSubs::startMD() const
|
||||
{
|
||||
double measuredDepth = 0.0;
|
||||
if (!m_locationOfSubs().empty())
|
||||
{
|
||||
measuredDepth = m_locationOfSubs().front();
|
||||
}
|
||||
|
||||
return measuredDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimFishbonesMultipleSubs::endMD() const
|
||||
{
|
||||
double measuredDepth = 0.0;
|
||||
if (!m_locationOfSubs().empty())
|
||||
{
|
||||
measuredDepth = m_locationOfSubs().back();
|
||||
}
|
||||
|
||||
return measuredDepth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimFishbonesMultipleSubs::completionLabel() const
|
||||
{
|
||||
return generatedName();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimFishbonesMultipleSubs::completionTypeLabel() const
|
||||
{
|
||||
return "Fishbones";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user