3D Well Log Curves (#2668): Implement Draw-plane width control

* Apply a factor between 0.25 and 2.5 times the characteristic cell size
* Make the offset from the pipe scale with the plane width up to a maximum offset.
* Organise the CurveCollection settings into two groups.
This commit is contained in:
Gaute Lindkvist
2018-04-17 09:40:30 +02:00
parent 36b1dcf85f
commit 9da3f09782
3 changed files with 35 additions and 10 deletions

View File

@@ -173,7 +173,8 @@ double Riv3dWellLogPlanePartMgr::wellPathCenterToPlotStartOffset(Rim3dWellLogCur
if (planePosition == Rim3dWellLogCurveCollection::ALONG_WELLPATH)
{
return m_wellPath->wellPathRadius(cellSize) * 2;
double wellPathOffset = std::min(m_wellPath->wellPathRadius(cellSize), 0.1 * planeWidth());
return m_wellPath->wellPathRadius(cellSize) + wellPathOffset;
}
else
{
@@ -189,8 +190,8 @@ double Riv3dWellLogPlanePartMgr::planeWidth() const
if (!m_gridView) return 0;
double cellSize = m_gridView->ownerCase()->characteristicCellSize();
return cellSize * 1.0;
const Rim3dWellLogCurveCollection* curveCollection = m_wellPath->rim3dWellLogCurveCollection();
return cellSize * curveCollection->planeWidthScaling();
}
//--------------------------------------------------------------------------------------------------