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