Characterization of ellipses as uniformly dense sets with respect to a family of convex bodies