mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
parent
fa66cf14cd
commit
60afae10ad
@ -1559,6 +1559,8 @@ bool RimEclipseView::isTimeStepDependentDataVisible() const
|
||||
if (this->faultResultSettings->customFaultResult()->isTernarySaturationSelected()) return true;
|
||||
}
|
||||
|
||||
if (this->wellPathCollection()->anyWellsContainingPerforationIntervals()) return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -320,6 +320,13 @@ void RimSimWellInViewCollection::fieldChangedByUi(const caf::PdmFieldHandle* cha
|
||||
if (&isActive == changedField)
|
||||
{
|
||||
this->updateUiIconFromToggleField();
|
||||
|
||||
RimView* view;
|
||||
firstAncestorOrThisOfType(view);
|
||||
if (view)
|
||||
{
|
||||
view->hasUserRequestedAnimation = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (&m_showWellLabel == changedField)
|
||||
|
@ -436,7 +436,7 @@ void RimView::endAnimation()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellPathCollection* RimView::wellPathCollection()
|
||||
RimWellPathCollection* RimView::wellPathCollection() const
|
||||
{
|
||||
RimProject* proj = nullptr;
|
||||
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||
|
@ -210,7 +210,7 @@ protected:
|
||||
|
||||
virtual void onLoadDataAndUpdate() = 0;
|
||||
|
||||
RimWellPathCollection* wellPathCollection();
|
||||
RimWellPathCollection* wellPathCollection() const;
|
||||
|
||||
QPointer<RiuViewer> m_viewer;
|
||||
|
||||
|
@ -37,6 +37,7 @@
|
||||
#include "RimProject.h"
|
||||
#include "RimWellLogFile.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimPerforationCollection.h"
|
||||
|
||||
#include "RiuMainWindow.h"
|
||||
|
||||
@ -478,6 +479,18 @@ void RimWellPathCollection::updateFilePathsFromProjectPath(const QString& newPro
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellPathCollection::anyWellsContainingPerforationIntervals() const
|
||||
{
|
||||
for (const auto& wellPath : wellPaths)
|
||||
{
|
||||
if (!wellPath->perforationIntervalCollection()->perforations().empty()) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -122,6 +122,8 @@ public:
|
||||
const cvf::BoundingBox& wellPathClipBoundingBox,
|
||||
const caf::DisplayCoordTransform* displayCoordTransform);
|
||||
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
|
||||
bool anyWellsContainingPerforationIntervals() const;
|
||||
|
||||
protected:
|
||||
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user