#3996 Shift Measurement text box to not overlap with current segment

* Check if line is tending left or tending right and shift box if it is tending left.
This commit is contained in:
Gaute Lindkvist
2019-02-04 15:28:32 +01:00
parent f15d6dd385
commit d70e94ca85
3 changed files with 35 additions and 9 deletions

View File

@@ -758,7 +758,7 @@ void Rim3dView::addMeasurementToModel(cvf::ModelBasicList* wellPathModelBasicLis
else
{
cvf::ref<caf::DisplayCoordTransform> transForm = displayCoordTransform();
m_measurementPartManager->appendGeometryPartsToModel(
m_measurementPartManager->appendGeometryPartsToModel(m_viewer->mainCamera(),
wellPathModelBasicList, transForm.p(), ownerCase()->allCellsBoundingBox());
}