#5001 Improve filtering of measurement collection.

This commit is contained in:
Kristian Bendiksen
2019-11-25 19:48:11 +01:00
parent b4fea5f00a
commit ea7df94649
6 changed files with 66 additions and 8 deletions

View File

@@ -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 )
{