mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2578 Fix avoid UTM coordinates in 2D intersection View (behind the scenes)
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "RimWellPath.h"
|
||||
|
||||
#include <QDateTime>
|
||||
#include "cafDisplayCoordTransform.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT(Rim2dIntersectionView, "Intersection2dView");
|
||||
|
||||
@@ -287,6 +288,14 @@ void Rim2dIntersectionView::update3dInfo()
|
||||
m_viewer->update();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::ref<caf::DisplayCoordTransform> Rim2dIntersectionView::displayCoordTransform() const
|
||||
{
|
||||
return new caf::DisplayCoordTransform();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -60,6 +60,9 @@ public:
|
||||
|
||||
cvf::ref<RivIntersectionPartMgr> flatIntersectionPartMgr() const { return m_flatIntersectionPartMgr; }
|
||||
|
||||
|
||||
virtual cvf::ref<caf::DisplayCoordTransform> displayCoordTransform() const override;
|
||||
|
||||
protected:
|
||||
void updateLegends();
|
||||
|
||||
|
||||
@@ -392,11 +392,12 @@ void RimIntersection::updateAzimuthLine()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector< std::vector <cvf::Vec3d> > RimIntersection::polyLines(double * horizontalLengthAlongWellToPolylineStart) const
|
||||
{
|
||||
CVF_ASSERT(horizontalLengthAlongWellToPolylineStart != nullptr);
|
||||
if (horizontalLengthAlongWellToPolylineStart) *horizontalLengthAlongWellToPolylineStart = 0.0;
|
||||
|
||||
std::vector< std::vector <cvf::Vec3d> > lines;
|
||||
|
||||
double horizontalProjectedLengthAlongWellPathToClipPoint = 0.0;
|
||||
if (horizontalLengthAlongWellToPolylineStart) *horizontalLengthAlongWellToPolylineStart = 0.0;
|
||||
|
||||
if (type == CS_WELL_PATH)
|
||||
{
|
||||
if (wellPath() && wellPath->wellPathGeometry() )
|
||||
|
||||
Reference in New Issue
Block a user