#5766 Make well disk 4x bigger by default.

This commit is contained in:
Kristian Bendiksen 2020-04-06 14:12:23 +02:00 committed by Gaute Lindkvist
parent 3931f68c4f
commit 5b1e75d259
2 changed files with 11 additions and 2 deletions

View File

@ -132,7 +132,7 @@ void RivWellDiskPartMgr::buildWellDiskParts( size_t frameIndex, const caf::Displ
cvf::GeometryBuilderFaceList builder;
{
RivDiskGeometryGenerator gen;
gen.setRelativeRadius( 2.5f * ( m_rimWell->diskScale() ) );
gen.setRelativeRadius( baseScaleFactor() * m_rimWell->diskScale() );
gen.setRelativeLength( 0.1f );
gen.setNumSlices( numSectors );
gen.generate( &builder );
@ -425,7 +425,7 @@ std::pair<cvf::String, cvf::Vec3f> RivWellDiskPartMgr::createTextAndLocation( co
cvf::Vec3f v = cvf::Vec3f( diskPosition );
double radius = 2.5f * ( m_rimWell->diskScale() );
double radius = baseScaleFactor() * m_rimWell->diskScale();
radius *= ijScaleFactor;
radius *= 1.1; // Put label outside the disk
@ -523,3 +523,11 @@ cvf::Color4f RivWellDiskPartMgr::getWellInjectionColor( RigWellResultFrame::Well
return cvf::Color4f( cvf::Color3::BLACK );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
double RivWellDiskPartMgr::baseScaleFactor()
{
return 10.0;
}

View File

@ -67,6 +67,7 @@ private:
static cvf::Color4f getWellInjectionColor( RigWellResultFrame::WellProductionType productionType );
static QString formatNumber( double num );
static double baseScaleFactor();
private:
caf::PdmPointer<RimSimWellInView> m_rimWell;