Polygon UI updates (#11975)

* Polygon UI updates
This commit is contained in:
jonjenssen
2024-12-06 14:26:30 +01:00
committed by GitHub
parent 53a31c88c9
commit 711cb267fd
14 changed files with 109 additions and 35 deletions

View File

@@ -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();
}