mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2634 Fix wrong MD when context menu creating completions in 2D intersectino View
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
#include "cvfVector3.h"
|
||||
|
||||
class RimWellPath;
|
||||
class Rim3dView;
|
||||
class RivPipeGeometryGenerator;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -34,19 +34,22 @@ class Rim3dView;
|
||||
class RivWellPathSourceInfo : public cvf::Object
|
||||
{
|
||||
public:
|
||||
explicit RivWellPathSourceInfo(RimWellPath* wellPath, Rim3dView* view);
|
||||
explicit RivWellPathSourceInfo(RimWellPath* wellPath, RivPipeGeometryGenerator* pipeGeomGenerator);
|
||||
~RivWellPathSourceInfo();
|
||||
|
||||
RimWellPath* wellPath() const;
|
||||
|
||||
size_t segmentIndex(size_t triangleIndex) const;
|
||||
double measuredDepth(size_t triangleIndex, const cvf::Vec3d& globalIntersection) const;
|
||||
cvf::Vec3d trueVerticalDepth(size_t triangleIndex, const cvf::Vec3d& globalIntersection) const;
|
||||
cvf::Vec3d closestPointOnCenterLine(size_t triangleIndex, const cvf::Vec3d& globalIntersection) const;
|
||||
|
||||
private:
|
||||
void normalizedIntersection(size_t triangleIndex, const cvf::Vec3d& globalIntersection,
|
||||
size_t* firstSegmentIndex, double* normalizedSegmentIntersection) const;
|
||||
void normalizedIntersection(size_t triangleIndex,
|
||||
const cvf::Vec3d& globalIntersection,
|
||||
size_t* firstSegmentIndex,
|
||||
double* normalizedSegmentIntersection) const;
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimWellPath> m_wellPath;
|
||||
caf::PdmPointer<Rim3dView> m_view;
|
||||
cvf::ref<RivPipeGeometryGenerator> m_pipeGeomGenerator;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user