mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-05 05:37:10 -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:
1 parent
286855cce0
commit
a33f651bcc
25 files changed
+341
-111
No files matched your search
@@ -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