mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user