mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well Targets: Add scaling factor for well targets
This commit is contained in:
parent
2e01f4a31d
commit
ab0b958884
@ -112,7 +112,7 @@ void RicWellTarget3dEditor::configureAndUpdateUi( const QString& uiConfigName )
|
||||
}
|
||||
|
||||
cvf::ref<caf::DisplayCoordTransform> dispXf = view->displayCoordTransform();
|
||||
double handleSize = 0.7 * view->ownerCase()->characteristicCellSize();
|
||||
double handleSize = view->ownerCase()->characteristicCellSize() * geomDef->wellTargetScalingFactor();
|
||||
|
||||
m_manipulator->setOrigin( dispXf->transformToDisplayCoord( target->targetPointXYZ() + geomDef->anchorPointXyz() ) );
|
||||
m_manipulator->setTangent( target->tangent() );
|
||||
|
@ -107,6 +107,7 @@ RimWellPathGeometryDef::RimWellPathGeometryDef()
|
||||
CAF_PDM_InitScriptableField( &m_showSpheres, "ShowSpheres", true, "Spheres" );
|
||||
CAF_PDM_InitField( &m_sphereColor, "SphereColor", cvf::Color3f( cvf::Color3f::CEETRON ), "Sphere Color" );
|
||||
CAF_PDM_InitField( &m_sphereRadiusFactor, "SphereRadiusFactor", 0.15, "Sphere Radius Factor" );
|
||||
CAF_PDM_InitField( &m_wellTargetHandleScalingFactor, "WellTargetHandleScalingFactor", 2.0, "Well Target Scaling Factor" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -348,6 +349,14 @@ bool RimWellPathGeometryDef::showAbsoluteCoordinates() const
|
||||
return m_showAbsolutePosForWellTargets;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimWellPathGeometryDef::wellTargetScalingFactor() const
|
||||
{
|
||||
return m_wellTargetHandleScalingFactor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@ -568,6 +577,7 @@ void RimWellPathGeometryDef::defineUiOrdering( QString uiConfigName, caf::PdmUiO
|
||||
group->add( &m_showSpheres );
|
||||
group->add( &m_sphereColor );
|
||||
group->add( &m_sphereRadiusFactor );
|
||||
group->add( &m_wellTargetHandleScalingFactor );
|
||||
|
||||
uiOrdering.add( &m_showAbsolutePosForWellTargets );
|
||||
uiOrdering.add( &m_wellTargets );
|
||||
|
@ -92,6 +92,7 @@ public:
|
||||
cvf::Color3f sphereColor() const;
|
||||
double sphereRadiusFactor() const;
|
||||
bool showAbsoluteCoordinates() const;
|
||||
double wellTargetScalingFactor() const;
|
||||
|
||||
protected:
|
||||
std::vector<RimWellPathTarget*> activeWellTargets( bool useAutoGeneratedTargetAtSeaLevel ) const;
|
||||
@ -140,6 +141,7 @@ private:
|
||||
caf::PdmField<bool> m_showSpheres;
|
||||
caf::PdmField<cvf::Color3f> m_sphereColor;
|
||||
caf::PdmField<double> m_sphereRadiusFactor;
|
||||
caf::PdmField<double> m_wellTargetHandleScalingFactor;
|
||||
|
||||
std::shared_ptr<RicCreateWellTargetsPickEventHandler> m_pickTargetsEventHandler;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user