mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3443 MSW: Visualise perforations, fishbones, packers and fractures in well log plots
This commit is contained in:
@@ -88,3 +88,21 @@ cvf::Color3f RiaColorTools::constrastColor(cvf::Color3f backgroundColor)
|
||||
|
||||
return brightContrastColor();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QColor RiaColorTools::toQColor(cvf::Color3f color, float alpha)
|
||||
{
|
||||
QColor qcolor(color.rByte(), color.gByte(), color.bByte());
|
||||
qcolor.setAlphaF(alpha);
|
||||
return qcolor;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QColor RiaColorTools::toQColor(cvf::Color4f color)
|
||||
{
|
||||
return toQColor(color.toColor3f(), color.a());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user