mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1544 : Move well path radius to RimWellPath
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -100,6 +100,9 @@ public:
|
||||
|
||||
caf::PdmField<bool> showWellPath;
|
||||
caf::PdmField<cvf::Color3f> wellPathColor;
|
||||
|
||||
double wellPathRadius(double characteristicCellSize) const;
|
||||
|
||||
caf::PdmField<double> wellPathRadiusScaleFactor;
|
||||
|
||||
RimFishbonesCollection* fishbonesCollection();
|
||||
|
||||
Reference in New Issue
Block a user