mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#9100 Thermal Fracture: add action to place using template data
This commit is contained in:
committed by
Magne Sjaastad
parent
803c9505b9
commit
78464b772f
@@ -689,3 +689,19 @@ QString RimThermalFractureTemplate::wellPathDepthAtFractureUiName() const
|
||||
{
|
||||
return "Well/Fracture Intersection Depth";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<cvf::Vec3d, cvf::Vec3d> RimThermalFractureTemplate::computePositionAndRotation() const
|
||||
{
|
||||
cvf::Vec3d centerPosition = cvf::Vec3d::UNDEFINED;
|
||||
cvf::Vec3d rotation = cvf::Vec3d::UNDEFINED;
|
||||
|
||||
if ( m_fractureDefinitionData )
|
||||
{
|
||||
centerPosition = m_fractureDefinitionData->centerPosition();
|
||||
}
|
||||
|
||||
return std::make_pair( centerPosition, rotation );
|
||||
}
|
||||
|
||||
@@ -100,6 +100,8 @@ public:
|
||||
static std::pair<QString, QString>
|
||||
widthParameterNameAndUnit( std::shared_ptr<RigThermalFractureDefinition> fractureDefinitionData );
|
||||
|
||||
std::pair<cvf::Vec3d, cvf::Vec3d> computePositionAndRotation() const;
|
||||
|
||||
protected:
|
||||
QString getFileSelectionFilter() const override;
|
||||
QStringList conductivityResultNames() const override;
|
||||
|
||||
@@ -457,6 +457,8 @@ caf::CmdFeatureMenuBuilder RimContextCommandBuilder::commandsFromSelection()
|
||||
dynamic_cast<RimWellPathFracture*>( firstUiItem ) )
|
||||
{
|
||||
menuBuilder << "RicNewWellPathFractureFeature";
|
||||
if ( dynamic_cast<RimWellPathFracture*>( firstUiItem ) )
|
||||
menuBuilder << "RicPlaceThermalFractureUsingTemplateDataFeature";
|
||||
appendExportCompletions( menuBuilder );
|
||||
}
|
||||
else if ( dynamic_cast<RimWellPathAttributeCollection*>( firstUiItem ) )
|
||||
|
||||
Reference in New Issue
Block a user