mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5477 Add independent scaling factor field to well measurements
This commit is contained in:
@@ -304,6 +304,10 @@ void RivWellPathPartMgr::appendWellMeasurementsToModel( cvf::ModelBasicList*
|
||||
double startMD = wellMeasurement->MD() - wellPathRadius * 0.5;
|
||||
double endMD = wellMeasurement->MD() + wellPathRadius * 0.5;
|
||||
|
||||
double wellMeasurementRadius = this->wellMeasurementRadius( characteristicCellSize,
|
||||
this->wellPathCollection(),
|
||||
wellMeasurementInView );
|
||||
|
||||
std::vector<cvf::Vec3d> displayCoords;
|
||||
displayCoords.push_back( displayCoordTransform->transformToDisplayCoord(
|
||||
m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath( startMD ) ) );
|
||||
@@ -315,10 +319,10 @@ void RivWellPathPartMgr::appendWellMeasurementsToModel( cvf::ModelBasicList*
|
||||
m_rimWellPath->wellPathGeometry()->interpolatedPointAlongWellPath( endMD ) ) );
|
||||
|
||||
std::vector<double> radii;
|
||||
radii.push_back( wellPathRadius );
|
||||
radii.push_back( wellPathRadius * 2.5 );
|
||||
radii.push_back( wellPathRadius * 2.5 );
|
||||
radii.push_back( wellPathRadius );
|
||||
radii.push_back( std::min( wellPathRadius, wellMeasurementRadius ) );
|
||||
radii.push_back( wellMeasurementRadius );
|
||||
radii.push_back( wellMeasurementRadius );
|
||||
radii.push_back( std::min( wellPathRadius, wellMeasurementRadius ) );
|
||||
|
||||
cvf::ref<RivObjectSourceInfo> objectSourceInfo = new RivObjectSourceInfo( wellMeasurement );
|
||||
|
||||
@@ -935,3 +939,14 @@ double RivWellPathPartMgr::wellPathRadius( double characteristicCellSize, RimWel
|
||||
return wellPathCollection->wellPathRadiusScaleFactor() * m_rimWellPath->wellPathRadiusScaleFactor() *
|
||||
characteristicCellSize;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RivWellPathPartMgr::wellMeasurementRadius( double characteristicCellSize,
|
||||
const RimWellPathCollection* wellPathCollection,
|
||||
const RimWellMeasurementInView* wellMeasurementInView )
|
||||
{
|
||||
return wellPathCollection->wellPathRadiusScaleFactor() * wellMeasurementInView->radiusScaleFactor() *
|
||||
characteristicCellSize;
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ class RimWellPathCollection;
|
||||
class Rim3dView;
|
||||
class Riv3dWellLogPlanePartMgr;
|
||||
class RivWellConnectionFactorPartMgr;
|
||||
class RimWellMeasurementInView;
|
||||
|
||||
class QDateTime;
|
||||
|
||||
@@ -126,6 +127,9 @@ private:
|
||||
void clearAllBranchData();
|
||||
inline RimWellPathCollection* wellPathCollection() const;
|
||||
inline double wellPathRadius( double characteristicCellSize, RimWellPathCollection* wellPathCollection );
|
||||
double wellMeasurementRadius( double characteristicCellSize,
|
||||
const RimWellPathCollection* wellPathCollection,
|
||||
const RimWellMeasurementInView* wellMeasurementInView );
|
||||
|
||||
bool isWellPathWithinBoundingBox( const cvf::BoundingBox& wellPathClipBoundingBox ) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user