#7026 Use better name for well/fracture intersection for ellipsis fracture.

This commit is contained in:
Kristian Bendiksen 2021-01-28 15:16:14 +01:00 committed by Magne Sjaastad
parent 94dfec1c9d
commit 6fad32e734
6 changed files with 23 additions and 1 deletions

View File

@ -496,6 +496,7 @@ void RimEllipseFractureTemplate::defineUiOrdering( QString uiConfigName, caf::Pd
}
uiOrdering.add( &m_wellPathDepthAtFracture );
m_wellPathDepthAtFracture.uiCapability()->setUiName( wellPathDepthAtFractureUiName() );
RimFractureTemplate::defineUiOrdering( uiConfigName, uiOrdering );
}
@ -536,3 +537,11 @@ double RimEllipseFractureTemplate::computeLegacyWellDepthAtFracture() const
// Set intersection depth to half of height to place ellipsis centered on the well path
return height() * m_heightScaleFactor / 2;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimEllipseFractureTemplate::wellPathDepthAtFractureUiName() const
{
return "Well/Fracture Intersection Position";
}

View File

@ -50,6 +50,7 @@ public:
double wellPathDepthAtFracture ) const override;
std::pair<double, double> wellPathDepthAtFractureRange() const override;
QString wellPathDepthAtFractureUiName() const override;
void changeUnits();
cvf::cref<RigFractureGrid> createFractureGrid( double wellPathDepthAtFracture ) const override;

View File

@ -701,6 +701,8 @@ void RimFracture::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& ui
}
}
m_wellPathDepthAtFracture.uiCapability()->setUiName( fractureTemplate()->wellPathDepthAtFractureUiName() );
if ( fractureTemplate()->orientationType() == RimFractureTemplate::ALONG_WELL_PATH ||
fractureTemplate()->orientationType() == RimFractureTemplate::TRANSVERSE_WELL_PATH )
{

View File

@ -138,6 +138,7 @@ public:
double wellPathDepthAtFracture() const;
virtual std::pair<double, double> wellPathDepthAtFractureRange() const = 0;
virtual QString wellPathDepthAtFractureUiName() const = 0;
virtual void fractureTriangleGeometry( std::vector<cvf::Vec3f>* nodeCoords,
std::vector<cvf::uint>* triangleIndices,

View File

@ -1113,3 +1113,11 @@ cvf::cref<RigFractureGrid> RimStimPlanFractureTemplate::createFractureGrid( doub
return cvf::cref<RigFractureGrid>();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimStimPlanFractureTemplate::wellPathDepthAtFractureUiName() const
{
return "Well/Fracture Intersection Depth";
}

View File

@ -62,6 +62,7 @@ public:
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath );
std::pair<double, double> wellPathDepthAtFractureRange() const override;
QString wellPathDepthAtFractureUiName() const override;
// Fracture geometry
cvf::cref<RigFractureGrid> createFractureGrid( double wellPathDepthAtFracture ) const override;