mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1722 Completion Export : Use RimTools::wellPathCollection
This commit is contained in:
@@ -606,7 +606,7 @@ void RivWellPathPartMgr::clearAllBranchData()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPathCollection* RivWellPathPartMgr::wellPathCollection()
|
||||
RimWellPathCollection* RivWellPathPartMgr::wellPathCollection() const
|
||||
{
|
||||
if (!m_rimWellPath) return nullptr;
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ private:
|
||||
|
||||
|
||||
void clearAllBranchData();
|
||||
inline RimWellPathCollection* wellPathCollection();
|
||||
inline RimWellPathCollection* wellPathCollection() const;
|
||||
inline double wellPathRadius(double characteristicCellSize, RimWellPathCollection* wellPathCollection);
|
||||
|
||||
bool isWellPathWithinBoundingBox(const cvf::BoundingBox& wellPathClipBoundingBox) const;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
#include "RiaApplication.h"
|
||||
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
|
||||
#include "RivWellPathPartMgr.h"
|
||||
@@ -129,22 +129,12 @@ void RivWellPathsPartMgr::createPartManagersIfRequired()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPathCollection* RivWellPathsPartMgr::wellPathCollection() const
|
||||
{
|
||||
RimProject* proj = RiaApplication::instance()->project();
|
||||
|
||||
return proj->activeOilField()->wellPathCollection();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RivWellPathsPartMgr::isWellPathVisible() const
|
||||
{
|
||||
auto wellPathColl = wellPathCollection();
|
||||
auto wellPathColl = RimTools::wellPathCollection();
|
||||
|
||||
if (!wellPathColl->isActive()) return false;
|
||||
if (wellPathColl->wellPathVisibility() == RimWellPathCollection::FORCE_ALL_OFF) return false;
|
||||
|
||||
@@ -42,7 +42,6 @@ class DisplayCoordTransform;
|
||||
|
||||
class Rim3dView;
|
||||
class RivWellPathPartMgr;
|
||||
class RimWellPathCollection;
|
||||
class RimWellPath;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -72,7 +71,6 @@ private:
|
||||
void clearGeometryCache();
|
||||
void scheduleGeometryRegen();
|
||||
void createPartManagersIfRequired();
|
||||
RimWellPathCollection* wellPathCollection() const;
|
||||
bool isWellPathVisible() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user