#1618 Showing well path direction in read only field. Also updating azimuth angle of wellpath / simwell to avoid negative angles and instead have angles 0-360deg.

This commit is contained in:
astridkbjorke
2017-06-26 15:09:33 +02:00
parent 2ed872e8fc
commit 2501264013
4 changed files with 16 additions and 0 deletions

View File

@@ -129,6 +129,9 @@ double RimWellPathFracture::wellAzimuthAtFracturePosition()
RigWellPath* wellPathGeometry = wellPath->wellPathGeometry();
double wellPathAzimuth = wellPathGeometry->wellPathAzimuthAngle(fracturePosition());
if (wellPathAzimuth < 0) wellPathAzimuth += 360;
return wellPathAzimuth;
}
@@ -150,6 +153,8 @@ void RimWellPathFracture::updatePositionFromMeasuredDepth()
positionAlongWellpath = wellPathGeometry->interpolatedPointAlongWellPath(m_measuredDepth());
this->setAnchorPosition(positionAlongWellpath);
m_wellPathAzimuth = wellAzimuthAtFracturePosition();
}
//--------------------------------------------------------------------------------------------------
@@ -165,6 +170,7 @@ void RimWellPathFracture::defineUiOrdering(QString uiConfigName, caf::PdmUiOrder
caf::PdmUiGroup* locationGroup = uiOrdering.addNewGroup("Location / Orientation");
locationGroup->add(&m_measuredDepth);
locationGroup->add(&azimuth);
locationGroup->add(&m_wellPathAzimuth);
locationGroup->add(&dip);
locationGroup->add(&tilt);