How to select points from the filter

Hello

There is a way to select data from the filter on the server side

 PythonScript->Push("source = paraview.simple.GetActiveSource()");
  PythonScript->Push("ClearSelection(source)");
  StrPython = "SelectIDs(IDs=[";
 ...
  StrPython.erase(StrPython.end() - 1);
  StrPython +=
      "], FieldType='POINT', ContainingCells=False, Source=source, "
      "Modifier='None')";
 PythonScript->Push(StrPython.data());

It works, but invokes tremendous volumes of code, including RequestData/RequestDataObject which is not a desirable outcome. However I have not find a native C++ way to do that.

How to do that with C++ inside filter code ?

I would appreciate your help very much

Thanks!