mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Depth Track Plots: Optionally show a line in all tracks
* #9378 Depth Track Plots: Optionally show a line in all tracks * Use RiaDefines::Orientation
This commit is contained in:
@@ -46,6 +46,19 @@ RimPlotAxisAnnotation::RimPlotAxisAnnotation()
|
||||
|
||||
CAF_PDM_InitFieldNoDefault( &m_rangeStart, "RangeStart", "Range Start" );
|
||||
CAF_PDM_InitFieldNoDefault( &m_rangeEnd, "RangeEnd", "Range End" );
|
||||
|
||||
caf::AppEnum<Qt::PenStyle> defaultStyle = Qt::PenStyle::SolidLine;
|
||||
CAF_PDM_InitField( &m_penStyle, "PenStyle", defaultStyle, "Pen Style" );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimPlotAxisAnnotation* RimPlotAxisAnnotation::createLineAnnotation()
|
||||
{
|
||||
auto annotation = new RimPlotAxisAnnotation();
|
||||
annotation->setAnnotationType( RimPlotAxisAnnotation::AnnotationType::LINE );
|
||||
return annotation;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -112,6 +125,22 @@ QColor RimPlotAxisAnnotation::color() const
|
||||
return QColor( 0, 0, 100 );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPlotAxisAnnotation::setPenStyle( Qt::PenStyle penStyle )
|
||||
{
|
||||
m_penStyle = penStyle;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
Qt::PenStyle RimPlotAxisAnnotation::penStyle() const
|
||||
{
|
||||
return m_penStyle();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user