Show time annotation in all sub plots (#11906)

* Prepare for more customization of annotation objects
* Move files
* Add configuration of readout lines in sub plots. The location along the time axis is based on the current mouse cursor position. The location is distributed to all sub plots. Optional support for readout of values at the current time.
This commit is contained in:
Magne Sjaastad
2025-02-05 17:19:01 +01:00
committed by GitHub
parent 28d3050433
commit 2021b286ab
29 changed files with 550 additions and 100 deletions

View File

@@ -66,7 +66,7 @@ RimAnnotationLineAppearance::RimAnnotationLineAppearance()
CAF_PDM_InitObject( "AnnotationLineAppearance", ":/WellCollection.png" );
CAF_PDM_InitField( &m_lineFieldsHidden, "LineFieldsHidden", false, "Line Fields Hidden" );
CAF_PDM_InitField( &m_color, "Color", cvf::Color3f( cvf::Color3f::BLACK ), "Line Color" );
CAF_PDM_InitField( &m_color, "Color", cvf::Color3f( cvf::Color3f::DARK_GRAY ), "Line Color" );
CAF_PDM_InitField( &m_thickness, "Thickness", 2, "Line Thickness" );
// Stippling not yet supported. Needs new stuff in VizFwk
@@ -85,6 +85,20 @@ void RimAnnotationLineAppearance::setLineFieldsHidden( bool hidden )
m_lineFieldsHidden = hidden;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimAnnotationLineAppearance::configureForSummaryAnnotations()
{
m_style.uiCapability()->setUiHidden( false );
m_style.xmlCapability()->setIOReadable( true );
m_style.xmlCapability()->setIOWritable( true );
m_thickness.uiCapability()->setUiHidden( true );
m_style = STYLE_DASH;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------