mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#11514 OSDU: parse and add datum elevation to well paths.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "RimOsduWellPath.h"
|
||||
|
||||
#include "cafPdmObject.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimOsduWellPath, "OsduWellPath" );
|
||||
@@ -20,6 +21,9 @@ RimOsduWellPath::RimOsduWellPath()
|
||||
CAF_PDM_InitFieldNoDefault( &m_wellboreTrajectoryId, "WellboreTrajectoryId", "Wellbore Trajectory Id" );
|
||||
m_wellboreTrajectoryId.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
CAF_PDM_InitField( &m_datumElevationFromOsdu, "DatumElevationFromOsdu", 0.0, "Datum Elevation From OSDU" );
|
||||
m_datumElevationFromOsdu.uiCapability()->setUiReadOnly( true );
|
||||
|
||||
// Required, as these settings are set in RimWellPath()
|
||||
m_name.uiCapability()->setUiReadOnly( false );
|
||||
m_name.uiCapability()->setUiHidden( false );
|
||||
@@ -82,6 +86,22 @@ QString RimOsduWellPath::wellboreTrajectoryId() const
|
||||
return m_wellboreTrajectoryId;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimOsduWellPath::setDatumElevationFromOsdu( double datumElevation )
|
||||
{
|
||||
m_datumElevationFromOsdu = datumElevation;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RimOsduWellPath::datumElevationFromOsdu() const
|
||||
{
|
||||
return m_datumElevationFromOsdu;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -91,6 +111,7 @@ void RimOsduWellPath::defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering
|
||||
osduGroup->add( &m_wellId );
|
||||
osduGroup->add( &m_wellboreId );
|
||||
osduGroup->add( &m_wellboreTrajectoryId );
|
||||
osduGroup->add( &m_datumElevationFromOsdu );
|
||||
|
||||
RimWellPath::defineUiOrdering( uiConfigName, uiOrdering );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user