29 point_cloud_filter->SetInputConnection(
_inputAlgorithm->GetOutputPort());
32 QList<QVariant> n_points_range_list;
33 n_points_range_list.push_back(
34 point_cloud_filter->GetMinNumberOfPointsPerCell());
35 n_points_range_list.push_back(
36 point_cloud_filter->GetMaxNumberOfPointsPerCell());
37 (*_algorithmUserVectorProperties)[
"Number of points range"] =
39 QList<QVariant> vertical_extent_list;
40 vertical_extent_list.push_back(point_cloud_filter->GetMinHeight());
41 vertical_extent_list.push_back(point_cloud_filter->GetMaxHeight());
42 (*_algorithmUserVectorProperties)[
"Vertical extent"] = vertical_extent_list;
43 (*_algorithmUserProperties)[
"Logarithmic interpolation"] =
44 !point_cloud_filter->GetIsLinear();
45 (*_algorithmUserProperties)[
"Gamma value"] = point_cloud_filter->GetGamma();
47 point_cloud_filter->Update();
83 QString name, QList<QVariant> values)
87 if (name ==
"Number of points range")
89 if (values[0].toInt() >= 0 && values[1].toInt() >= 0 &&
90 values[0].toInt() <= values[1].toInt())
93 ->SetMinNumberOfPointsPerCell(values[0].toInt());
95 ->SetMaxNumberOfPointsPerCell(values[1].toInt());
98 else if (name ==
"Vertical extent")
100 if (values[0].toDouble() <= values[1].toDouble())
103 ->SetMinHeight(values[0].toDouble());
105 ->SetMaxHeight(values[1].toDouble());