36 point_cloud_filter->SetInputConnection(
_inputAlgorithm->GetOutputPort());
39 QList<QVariant> n_points_range_list;
40 n_points_range_list.push_back(
41 point_cloud_filter->GetMinNumberOfPointsPerCell());
42 n_points_range_list.push_back(
43 point_cloud_filter->GetMaxNumberOfPointsPerCell());
44 (*_algorithmUserVectorProperties)[
"Number of points range"] =
46 QList<QVariant> vertical_extent_list;
47 vertical_extent_list.push_back(point_cloud_filter->GetMinHeight());
48 vertical_extent_list.push_back(point_cloud_filter->GetMaxHeight());
49 (*_algorithmUserVectorProperties)[
"Vertical extent"] = vertical_extent_list;
50 (*_algorithmUserProperties)[
"Logarithmic interpolation"] =
51 !point_cloud_filter->GetIsLinear();
52 (*_algorithmUserProperties)[
"Gamma value"] = point_cloud_filter->GetGamma();
54 point_cloud_filter->Update();
90 QString name, QList<QVariant> values)
94 if (name ==
"Number of points range")
96 if (values[0].toInt() >= 0 && values[1].toInt() >= 0 &&
97 values[0].toInt() <= values[1].toInt())
100 ->SetMinNumberOfPointsPerCell(values[0].toInt());
102 ->SetMaxNumberOfPointsPerCell(values[1].toInt());
105 else if (name ==
"Vertical extent")
107 if (values[0].toDouble() <= values[1].toDouble())
110 ->SetMinHeight(values[0].toDouble());
112 ->SetMaxHeight(values[1].toDouble());