Sets a new PDF layer object for the geometry reference object.
If the smart pointer to a PDF layer object is null, it means that the reference object doesn't belong to a layer.