Add reload and delete of pressure/depth data

This commit is contained in:
Magne Sjaastad
2023-03-13 14:47:44 +01:00
parent ab44f9fa17
commit eb5a0cf936
10 changed files with 159 additions and 10 deletions

View File

@@ -38,6 +38,16 @@ RimPressureDepthData::RimPressureDepthData()
m_wells.xmlCapability()->disableIO();
m_wells.uiCapability()->setUiReadOnly( true );
m_wells.registerGetMethod( this, &RimPressureDepthData::wellNames );
setDeletable( true );
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
QString RimPressureDepthData::filePath() const
{
return m_filePath().path();
}
//--------------------------------------------------------------------------------------------------
@@ -53,7 +63,7 @@ void RimPressureDepthData::setFilePath( const QString& path )
//--------------------------------------------------------------------------------------------------
void RimPressureDepthData::createRftReaderInterface()
{
m_fmuRftReader = new RifReaderPressureDepthData( m_filePath );
m_fmuRftReader = new RifReaderPressureDepthData( m_filePath().path() );
m_fmuRftReader->load();
}