sub myfunc {
  my ($filter, $iter, $column_num, $data) = @_;
  ...

and should return the value from the filtered model that iter row and column number.