mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Go via RimWellPathCollection::addWellPath for any well path addition
This commit is contained in:
parent
6622328622
commit
8e8534d61e
@ -260,6 +260,15 @@ std::vector<RimWellPath*> RimWellPathCollection::addWellPaths( QStringList fileP
|
|||||||
return wellPaths();
|
return wellPaths();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RimWellPathCollection::addWellPath( RimWellPath* wellPath )
|
||||||
|
{
|
||||||
|
m_wellPaths.push_back( wellPath );
|
||||||
|
m_mostRecentlyUpdatedWellPath = wellPath;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
@ -300,8 +309,7 @@ void RimWellPathCollection::readAndAddWellPaths( std::vector<RimFileWellPath*>&
|
|||||||
{
|
{
|
||||||
wellPath->setWellPathColor( RiaColorTables::wellPathsPaletteColors().cycledColor3f( m_wellPaths.size() ) );
|
wellPath->setWellPathColor( RiaColorTables::wellPathsPaletteColors().cycledColor3f( m_wellPaths.size() ) );
|
||||||
wellPath->setUnitSystem( findUnitSystemForWellPath( wellPath ) );
|
wellPath->setUnitSystem( findUnitSystemForWellPath( wellPath ) );
|
||||||
m_mostRecentlyUpdatedWellPath = wellPath;
|
addWellPath( wellPath );
|
||||||
m_wellPaths.push_back( wellPath );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
progress.incrementProgress();
|
progress.incrementProgress();
|
||||||
@ -317,7 +325,7 @@ void RimWellPathCollection::addWellPaths( const std::vector<RimWellPath*> incomi
|
|||||||
{
|
{
|
||||||
for ( const auto& wellPath : incomingWellPaths )
|
for ( const auto& wellPath : incomingWellPaths )
|
||||||
{
|
{
|
||||||
m_wellPaths.push_back( wellPath );
|
addWellPath( wellPath );
|
||||||
}
|
}
|
||||||
this->sortWellsByName();
|
this->sortWellsByName();
|
||||||
|
|
||||||
@ -347,7 +355,7 @@ std::vector<RimWellLogFile*> RimWellPathCollection::addWellLogs( const QStringLi
|
|||||||
if ( !wellPath )
|
if ( !wellPath )
|
||||||
{
|
{
|
||||||
wellPath = new RimWellPath();
|
wellPath = new RimWellPath();
|
||||||
m_wellPaths.push_back( wellPath );
|
addWellPath( wellPath );
|
||||||
}
|
}
|
||||||
|
|
||||||
wellPath->addWellLogFile( logFileInfo );
|
wellPath->addWellLogFile( logFileInfo );
|
||||||
@ -386,7 +394,7 @@ void RimWellPathCollection::addWellPathFormations( const QStringList& filePaths
|
|||||||
{
|
{
|
||||||
wellPath = new RimWellPath();
|
wellPath = new RimWellPath();
|
||||||
wellPath->setName( it->first );
|
wellPath->setName( it->first );
|
||||||
m_wellPaths.push_back( wellPath );
|
addWellPath( wellPath );
|
||||||
RiaLogging::info( QString( "Created new well: %1" ).arg( wellPath->name() ) );
|
RiaLogging::info( QString( "Created new well: %1" ).arg( wellPath->name() ) );
|
||||||
}
|
}
|
||||||
wellPath->setFormationsGeometry( it->second );
|
wellPath->setFormationsGeometry( it->second );
|
||||||
|
@ -91,7 +91,6 @@ public:
|
|||||||
|
|
||||||
void loadDataAndUpdate();
|
void loadDataAndUpdate();
|
||||||
std::vector<RimWellPath*> addWellPaths( QStringList filePaths, QStringList* errorMessages );
|
std::vector<RimWellPath*> addWellPaths( QStringList filePaths, QStringList* errorMessages );
|
||||||
|
|
||||||
std::vector<RimWellPath*> wellPaths();
|
std::vector<RimWellPath*> wellPaths();
|
||||||
void removeWellPath( RimWellPath* wellPath );
|
void removeWellPath( RimWellPath* wellPath );
|
||||||
void deleteAllWellPaths();
|
void deleteAllWellPaths();
|
||||||
@ -101,9 +100,11 @@ public:
|
|||||||
void readWellPathFormationFiles();
|
void readWellPathFormationFiles();
|
||||||
void reloadAllWellPathFormations();
|
void reloadAllWellPathFormations();
|
||||||
|
|
||||||
RimWellPath* wellPathByName( const QString& wellPathName ) const;
|
RimWellPath* wellPathByName( const QString& wellPathName ) const;
|
||||||
RimWellPath* tryFindMatchingWellPath( const QString& wellName ) const;
|
RimWellPath* tryFindMatchingWellPath( const QString& wellName ) const;
|
||||||
void addWellPaths( const std::vector<RimWellPath*> incomingWellPaths );
|
void addWellPaths( const std::vector<RimWellPath*> incomingWellPaths );
|
||||||
|
void addWellPath( RimWellPath* wellPath );
|
||||||
|
|
||||||
std::vector<RimWellLogFile*> addWellLogs( const QStringList& filePaths, QStringList* errorMessages );
|
std::vector<RimWellLogFile*> addWellLogs( const QStringList& filePaths, QStringList* errorMessages );
|
||||||
void addWellPathFormations( const QStringList& filePaths );
|
void addWellPathFormations( const QStringList& filePaths );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user