(#404) Using well path pointer instead of index for source info for picking

This commit is contained in:
Pål Hagen
2015-09-07 16:17:40 +02:00
parent 98efbf863f
commit 6eaef49996
6 changed files with 25 additions and 26 deletions

View File

@@ -19,18 +19,21 @@
#include "RivWellPathSourceInfo.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RivWellPathSourceInfo::RivWellPathSourceInfo(size_t wellPathIndex)
RivWellPathSourceInfo::RivWellPathSourceInfo(RimWellPath* wellPath)
{
m_wellPathIndex = wellPathIndex;
m_wellPath = wellPath;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t RivWellPathSourceInfo::wellPathIndex() const
RimWellPath* RivWellPathSourceInfo::wellPath() const
{
return m_wellPathIndex;
return m_wellPath.p();
}