mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Sync seismic section with well path changes. (#10090)
* Sync seismic section with well path changes. * Make sure we pick seismic textures/coordinates that fits the z steps of the seismic data.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
#include "RimExtrudedCurveIntersection.h"
|
||||
#include "RimPlotCurve.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimSeismicSection.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathFracture.h"
|
||||
@@ -81,29 +82,36 @@ void RimModeledWellPath::updateWellPathVisualization()
|
||||
{
|
||||
createWellPathGeometry();
|
||||
|
||||
std::vector<RimPlotCurve*> refferingCurves;
|
||||
this->objectsWithReferringPtrFieldsOfType( refferingCurves );
|
||||
std::vector<RimPlotCurve*> referringCurves;
|
||||
objectsWithReferringPtrFieldsOfType( referringCurves );
|
||||
|
||||
for ( auto curve : refferingCurves )
|
||||
for ( auto curve : referringCurves )
|
||||
{
|
||||
curve->loadDataAndUpdate( false );
|
||||
}
|
||||
|
||||
for ( auto fracture : this->fractureCollection()->activeFractures() )
|
||||
for ( auto fracture : fractureCollection()->activeFractures() )
|
||||
{
|
||||
fracture->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
std::vector<RimExtrudedCurveIntersection*> refferingIntersections;
|
||||
this->objectsWithReferringPtrFieldsOfType( refferingIntersections );
|
||||
std::vector<RimExtrudedCurveIntersection*> referringIntersections;
|
||||
objectsWithReferringPtrFieldsOfType( referringIntersections );
|
||||
|
||||
for ( auto intersection : refferingIntersections )
|
||||
for ( auto intersection : referringIntersections )
|
||||
{
|
||||
intersection->rebuildGeometryAndScheduleCreateDisplayModel();
|
||||
}
|
||||
|
||||
std::vector<RimSeismicSection*> referringSeismic;
|
||||
objectsWithReferringPtrFieldsOfType( referringSeismic );
|
||||
for ( auto seisSec : referringSeismic )
|
||||
{
|
||||
seisSec->updateVisualization();
|
||||
}
|
||||
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfTypeAsserted( proj );
|
||||
firstAncestorOrThisOfTypeAsserted( proj );
|
||||
proj->scheduleCreateDisplayModelAndRedrawAllViews();
|
||||
}
|
||||
|
||||
@@ -197,16 +205,6 @@ void RimModeledWellPath::onGeometryDefinitionChanged( const caf::SignalEmitter*
|
||||
updateGeometry( fullUpdate );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimModeledWellPath::fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue )
|
||||
{
|
||||
// TODO remove if nothing happens here
|
||||
|
||||
RimWellPath::fieldChangedByUi( changedField, oldValue, newValue );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user