mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5472 Add indication of water depth to formation and casing track
* Also add lighter formation lines as an option and make this default for WBS plots
This commit is contained in:
@@ -97,12 +97,23 @@ void RiuPlotAnnotationTool::attachNamedRegions( QwtPlot*
|
||||
|
||||
QColor lineColor( 0, 0, 0, 0 );
|
||||
QColor textColor( 0, 0, 0, 255 );
|
||||
if ( regionDisplay & DARK_LINES || regionDisplay & COLORED_LINES )
|
||||
if ( regionDisplay & DARK_LINES || regionDisplay & COLORED_LINES || regionDisplay & LIGHT_LINES )
|
||||
{
|
||||
cvf::Color3ub cvfColor = catMapper.mapToColor( static_cast<double>( i ) );
|
||||
QColor cycledColor( cvfColor.r(), cvfColor.g(), cvfColor.b() );
|
||||
|
||||
lineColor = regionDisplay & DARK_LINES ? QColor( 0, 0, 100 ) : cycledColor;
|
||||
if ( regionDisplay & DARK_LINES )
|
||||
{
|
||||
lineColor = QColor( 50, 50, 100 );
|
||||
}
|
||||
else if ( regionDisplay & LIGHT_LINES )
|
||||
{
|
||||
lineColor = QColor( 200, 200, 200 );
|
||||
}
|
||||
else
|
||||
{
|
||||
lineColor = cycledColor;
|
||||
}
|
||||
textColor = lineColor;
|
||||
}
|
||||
Qt::Alignment horizontalAlignment = trackTextAlignment( trackSpan );
|
||||
|
||||
@@ -44,7 +44,8 @@ public:
|
||||
DARK_LINES = 0x01,
|
||||
COLORED_LINES = 0x02,
|
||||
COLOR_SHADING = 0x04,
|
||||
COLOR_SHADING_AND_LINES = 0x05
|
||||
COLOR_SHADING_AND_LINES = 0x05,
|
||||
LIGHT_LINES = 0x08,
|
||||
};
|
||||
enum TrackSpan
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user