mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
#7012 Clear facies code names when importing roff files
This commit is contained in:
parent
9e4e8cd353
commit
b04d2aa99a
@ -62,6 +62,8 @@ void RicFaciesPropertiesImportTools::importFaciesPropertiesFromFile( const QStri
|
|||||||
faciesProperties = new RimFaciesProperties;
|
faciesProperties = new RimFaciesProperties;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
faciesProperties->clearFaciesCodeNames();
|
||||||
|
|
||||||
for ( auto it : codeNames )
|
for ( auto it : codeNames )
|
||||||
{
|
{
|
||||||
faciesProperties->setFaciesCodeName( it.first, it.second );
|
faciesProperties->setFaciesCodeName( it.first, it.second );
|
||||||
|
@ -96,6 +96,15 @@ void RimFaciesProperties::setFaciesCodeName( int code, const QString& name )
|
|||||||
m_propertiesTable = generatePropertiesTable();
|
m_propertiesTable = generatePropertiesTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimFaciesProperties::clearFaciesCodeNames()
|
||||||
|
{
|
||||||
|
m_faciesCodeNames.clear();
|
||||||
|
m_propertiesTable = generatePropertiesTable();
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -47,6 +47,7 @@ public:
|
|||||||
void setFilePath( const QString& filePath );
|
void setFilePath( const QString& filePath );
|
||||||
|
|
||||||
void setFaciesCodeName( int code, const QString& name );
|
void setFaciesCodeName( int code, const QString& name );
|
||||||
|
void clearFaciesCodeNames();
|
||||||
|
|
||||||
void setEclipseCase( RimEclipseCase* eclipseCase );
|
void setEclipseCase( RimEclipseCase* eclipseCase );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user