mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3249 Refactoring: Remove the old extractintersectionData.
Replace it with a separate find method. Use RiuPickItemInfo in the RicViewerEventObject
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "cvfPart.h"
|
||||
#include "cvfDrawableGeo.h"
|
||||
#include "cvfTransform.h"
|
||||
#include "cvfHitItemCollection.h"
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -48,3 +49,17 @@ RiuPickItemInfo RiuPickItemInfo::extractPickItemInfo(const cvf::HitItem* hitItem
|
||||
|
||||
return pickInfo;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RiuPickItemInfo> RiuPickItemInfo::convertToPickItemInfos( const cvf::HitItemCollection &hitItems)
|
||||
{
|
||||
std::vector<RiuPickItemInfo> pickItemInfos;
|
||||
pickItemInfos.reserve(hitItems.count());
|
||||
for ( size_t i = 0; i < hitItems.count(); i++ )
|
||||
{
|
||||
pickItemInfos.emplace_back(RiuPickItemInfo(hitItems.item(i)));
|
||||
}
|
||||
return pickItemInfos;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user