30 double thresholdLower(
_range.first);
31 double thresholdUpper(
_range.second);
37 vtkSmartPointer<VtkAppendArrayFilter> selFilter(
nullptr);
40 selFilter = vtkSmartPointer<VtkAppendArrayFilter>::New();
46 vtkSmartPointer<vtkIdFilter> idFilter = vtkSmartPointer<vtkIdFilter>::New();
54 idFilter->SetInputConnection(selFilter->GetOutputPort());
56 idFilter->PointIdsOn();
57 idFilter->CellIdsOn();
58 idFilter->FieldDataOn();
61 vtkThreshold* threshold = vtkThreshold::New();
62 threshold->SetInputConnection(idFilter->GetOutputPort());
63 threshold->SetInputArrayToProcess(0, 0, 0,
64 vtkDataObject::FIELD_ASSOCIATION_CELLS,
66 threshold->SetSelectedComponent(0);
67 threshold->SetThresholdFunction(
68 vtkThreshold::ThresholdType::THRESHOLD_BETWEEN);
69 threshold->SetLowerThreshold(thresholdLower);
70 threshold->SetUpperThreshold(thresholdUpper);
73 QList<QVariant> thresholdRangeList;
74 thresholdRangeList.push_back(thresholdLower);
75 thresholdRangeList.push_back(thresholdUpper);
76 (*_algorithmUserVectorProperties)[
"Threshold Between"] = thresholdRangeList;