mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2630 convenince method to convert to utm coordiantes for intersectino points in 2d intersection view
This commit is contained in:
parent
2b4e26aaca
commit
24955d0ddd
@ -302,6 +302,16 @@ cvf::ref<RivIntersectionPartMgr> Rim2dIntersectionView::flatIntersectionPartMgr(
|
|||||||
return m_flatIntersectionPartMgr;
|
return m_flatIntersectionPartMgr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
cvf::Vec3d Rim2dIntersectionView::transformToUtm(const cvf::Vec3d& unscaledPointInFlatDomain) const
|
||||||
|
{
|
||||||
|
cvf::Mat4d unflatXf = this->flatIntersectionPartMgr()->unflattenTransformMatrix(unscaledPointInFlatDomain);
|
||||||
|
|
||||||
|
return unscaledPointInFlatDomain.getTransformedPoint(unflatXf);
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -62,7 +62,7 @@ public:
|
|||||||
void update3dInfo();
|
void update3dInfo();
|
||||||
|
|
||||||
cvf::ref<RivIntersectionPartMgr> flatIntersectionPartMgr() const;
|
cvf::ref<RivIntersectionPartMgr> flatIntersectionPartMgr() const;
|
||||||
|
cvf::Vec3d transformToUtm(const cvf::Vec3d& unscaledPointInFlatDomain) const;
|
||||||
|
|
||||||
virtual cvf::ref<caf::DisplayCoordTransform> displayCoordTransform() const override;
|
virtual cvf::ref<caf::DisplayCoordTransform> displayCoordTransform() const override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user