mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor : Use enum class
This commit is contained in:
@@ -191,7 +191,7 @@ void RivWellHeadPartMgr::buildWellHeadParts( size_t f
|
||||
textPosition.z() += 1.2 * arrowLength;
|
||||
|
||||
cvf::Mat4f matr;
|
||||
if ( wellResultFrame.m_productionType != RigWellResultFrame::PRODUCER )
|
||||
if ( wellResultFrame.m_productionType != RiaDefines::WellProductionType::PRODUCER )
|
||||
{
|
||||
matr = cvf::Mat4f::fromRotation( cvf::Vec3f( 1.0f, 0.0f, 0.0f ), cvf::Math::toRadians( 180.0f ) );
|
||||
}
|
||||
@@ -205,7 +205,7 @@ void RivWellHeadPartMgr::buildWellHeadParts( size_t f
|
||||
matr( 1, 1 ) *= ijScaleFactor;
|
||||
matr( 2, 2 ) *= arrowLength;
|
||||
|
||||
if ( wellResultFrame.m_productionType != RigWellResultFrame::PRODUCER )
|
||||
if ( wellResultFrame.m_productionType != RiaDefines::WellProductionType::PRODUCER )
|
||||
{
|
||||
arrowPosition.z() += arrowLength;
|
||||
}
|
||||
@@ -253,19 +253,19 @@ void RivWellHeadPartMgr::buildWellHeadParts( size_t f
|
||||
{
|
||||
if ( wellResultFrame.m_isOpen )
|
||||
{
|
||||
if ( wellResultFrame.m_productionType == RigWellResultFrame::PRODUCER )
|
||||
if ( wellResultFrame.m_productionType == RiaDefines::WellProductionType::PRODUCER )
|
||||
{
|
||||
headColor = cvf::Color4f( cvf::Color3::GREEN );
|
||||
}
|
||||
else if ( wellResultFrame.m_productionType == RigWellResultFrame::OIL_INJECTOR )
|
||||
else if ( wellResultFrame.m_productionType == RiaDefines::WellProductionType::OIL_INJECTOR )
|
||||
{
|
||||
headColor = cvf::Color4f( cvf::Color3::ORANGE );
|
||||
}
|
||||
else if ( wellResultFrame.m_productionType == RigWellResultFrame::GAS_INJECTOR )
|
||||
else if ( wellResultFrame.m_productionType == RiaDefines::WellProductionType::GAS_INJECTOR )
|
||||
{
|
||||
headColor = cvf::Color4f( cvf::Color3::RED );
|
||||
}
|
||||
else if ( wellResultFrame.m_productionType == RigWellResultFrame::WATER_INJECTOR )
|
||||
else if ( wellResultFrame.m_productionType == RiaDefines::WellProductionType::WATER_INJECTOR )
|
||||
{
|
||||
headColor = cvf::Color4f( cvf::Color3::BLUE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user