mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
@@ -165,6 +165,18 @@ void RimPolygonInView::updateVisualization()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool RimPolygonInView::showLines() const
|
||||
{
|
||||
if ( auto poly = polygon() )
|
||||
{
|
||||
return poly->showLines() && isChecked();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -389,6 +401,11 @@ void RimPolygonInView::appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimPolygonInView::onObjectChanged( const caf::SignalEmitter* emitter )
|
||||
{
|
||||
// make sure name is in sync
|
||||
if ( dynamic_cast<const RimPolygon*>( emitter ) )
|
||||
{
|
||||
setName( m_polygon->name() );
|
||||
}
|
||||
updateVisualization();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user