mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-04 13:16:56 -06:00
#1544 : Move well path radius to RimWellPath
This commit is contained in:
1 parent
8e5bcef7c7
commit
c7d61ed7f4
4 files changed
+22
-13
No files matched your search
@@ -195,6 +195,23 @@ void RimWellPath::setSurveyType(QString surveyType)
|
||||
wellPathColor = cvf::Color3f(0.0f, 0.333f, 0.999f);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimWellPath::wellPathRadius(double characteristicCellSize) const
|
||||
{
|
||||
double radius = characteristicCellSize * wellPathRadiusScaleFactor();
|
||||
|
||||
RimWellPathCollection* coll = nullptr;
|
||||
this->firstAncestorOrThisOfType(coll);
|
||||
if (coll)
|
||||
{
|
||||
radius *= coll->wellPathRadiusScaleFactor();
|
||||
}
|
||||
|
||||
return radius;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user