Improve visual appearance for depth surface

- disable intersection geometry with cell property colors
- allow opacity
- set default color to blue, as most user use this plane for oil-water contact
This commit is contained in:
Magne Sjaastad
2024-08-27 09:48:21 +02:00
parent 0fd27a3a8d
commit 64a559756f
7 changed files with 96 additions and 5 deletions

View File

@@ -81,6 +81,15 @@ RimSurface* RimDepthSurface::createCopy()
return copyObject<RimDepthSurface>();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RimDepthSurface::showIntersectionCellResults()
{
// Avoid use of cell intersection results color for depth surfaces
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -141,6 +150,8 @@ void RimDepthSurface::fieldChangedByUi( const caf::PdmFieldHandle* changedField,
//--------------------------------------------------------------------------------------------------
void RimDepthSurface::defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute )
{
RimSurface::defineEditorAttribute( field, uiConfigName, attribute );
caf::PdmUiDoubleValueEditorAttribute::testAndSetFixedWithTwoDecimals( attribute );
if ( field == &m_depth )
@@ -199,6 +210,9 @@ void RimDepthSurface::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering
auto group = uiOrdering.addNewGroup( "Appearance" );
group->add( &m_userDescription );
group->add( &m_color );
group->add( &m_enableOpacity );
group->add( &m_opacity );
}
uiOrdering.skipRemainingFields();