mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5125 Use category legend for well measurements without values.
This commit is contained in:
@@ -177,3 +177,31 @@ void RimWellMeasurement::fieldChangedByUi( const caf::PdmFieldHandle* changedFie
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellMeasurement::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) {}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
cvf::Color3f RimWellMeasurement::mapToColor( const QString& measurementKind )
|
||||
{
|
||||
if ( measurementKind == "DP" ) return cvf::Color3f::RED;
|
||||
if ( measurementKind == "TH" ) return cvf::Color3f::RED;
|
||||
if ( measurementKind == "LE" ) return cvf::Color3f::BLUE;
|
||||
if ( measurementKind == "BA" ) return cvf::Color3f::GREEN;
|
||||
if ( measurementKind == "CORE" ) return cvf::Color3f::BLACK;
|
||||
|
||||
return cvf::Color3f::CRIMSON;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimWellMeasurement::kindHasValue( const QString& measurementKind )
|
||||
{
|
||||
QStringList valueLessKind;
|
||||
valueLessKind << "DP"
|
||||
<< "LE"
|
||||
<< "TH"
|
||||
<< "BA"
|
||||
<< "CORE";
|
||||
return !valueLessKind.contains( measurementKind );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user