mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5001 Improve filtering of measurement collection.
This commit is contained in:
@@ -294,11 +294,16 @@ void RivWellPathPartMgr::appendWellMeasurementsToModel( cvf::ModelBasicList*
|
||||
RimWellMeasurementCollection* wellMeasurementCollection = wellPathCollection->measurementCollection();
|
||||
if ( !wellMeasurementCollection ) return;
|
||||
|
||||
if ( !wellMeasurementCollection->isChecked() ) return;
|
||||
|
||||
std::vector<QString> measurementKinds = wellMeasurementCollection->measurementKinds();
|
||||
|
||||
RivPipeGeometryGenerator geoGenerator;
|
||||
std::vector<RimWellMeasurement*> wellMeasurements =
|
||||
RimWellMeasurementFilter::filterMeasurements( wellMeasurementCollection->measurements(),
|
||||
*wellPathCollection,
|
||||
*m_rimWellPath );
|
||||
*m_rimWellPath,
|
||||
measurementKinds );
|
||||
|
||||
for ( RimWellMeasurement* wellMeasurement : wellMeasurements )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user